Re: [HACKERS] Compiling UDF DLL under Win32

2006-02-10 Thread Andrew Dunstan
Are you using pgxs + gmake? That's the best way to set up a UDF. We recently made changes to ensure that pgxs works on Windows, and several people have used it. This could easily blow up on you: -I"C:/Dev-Cpp/include" - why do you need to use the IDE's include files? If you really need an

Re: [HACKERS] Compiling UDF DLL under Win32

2006-02-10 Thread anonymus.crux
hm, I'm still stuck: can't compile extension with mingw compiler. I use Dev-CPP IDE (4.9.9.2) with MingW 3.7. Has it been tested to compile extensions under XP with PostgresQL 8.1.2 ? Al I get are compiler errors: gcc.exe -c fd.c -o fd.o -I"C:/Dev-Cpp/include" -I"D:/.Work/postgresql/postgresql

Re: [HACKERS] Compiling UDF DLL under Win32

2006-02-07 Thread Magnus Hagander
> > No, you need to use mingw to compile extensions. > > I think we should write some documents on how to generate > postgres.lib from postgres.exe for VC++, Borland C++ users. I was under the impression it didn't work even if you did that. But I've never tried it... //Magnus -

Re: [HACKERS] Compiling UDF DLL under Win32

2006-02-07 Thread William ZHANG
""Magnus Hagander"" <[EMAIL PROTECTED]> > No, you need to use mingw to compile extensions. I think we should write some documents on how to generate postgres.lib from postgres.exe for VC++, Borland C++ users. > //Magnus > > ---(end of broadcast)---

Re: [HACKERS] Compiling UDF DLL under Win32

2006-02-07 Thread Magnus Hagander
> I was wondering if I can use VC compiler to compile UDF DLL ? > If yes then I am wondering why I am getting linking errors: > > Compiling... > fd.c > Linking... >Creating library Debug/fd.lib and object Debug/fd.exp > fd.obj : error LNK2001: unresolved external symbol > _CurrentMemoryConte

[HACKERS] Compiling UDF DLL under Win32

2006-02-07 Thread anonymus.crux
Hi! I was wondering if I can use VC compiler to compile UDF DLL ? If yes then I am wondering why I am getting linking errors: Compiling... fd.c Linking... Creating library Debug/fd.lib and object Debug/fd.exp fd.obj : error LNK2001: unresolved external symbol _CurrentMemoryContext Debug/fd.dll