Re: Compiling UDF DLL under Win32
От | Andrew Dunstan |
---|---|
Тема | Re: Compiling UDF DLL under Win32 |
Дата | |
Msg-id | 43ECA0AF.7020101@dunslane.net обсуждение исходный текст |
Ответ на | Re: Compiling UDF DLL under Win32 ("anonymus.crux" <anonymus.crux@mail.ee>) |
Список | pgsql-hackers |
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 IDE or something like it, native Windows XEmacs works reasonably. cheers andrew anonymus.crux wrote: > 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-8.1.2/src/include" > -I"D:/.Work/postgresql/postgresql-8.1.2/src/include/port/win32" > -I"D:/.Work/postgresql/postgresql-8.1.2/src/include" > -I"D:/.Work/postgresql/postgresql-8.1.2/src/include/port/win32" > -DBUILDING_DLL=1 -DWIN32 -DWIN32_CLIENT_ONLY=0 > > D:/.Work/postgresql/postgresql-8.1.2/src/include/port/win32.h:181: > error: redefinition of typedef 'pid_t' > C:/Dev-Cpp/include/sys/types.h:75: error: previous declaration of > 'pid_t' was here > > In file included from > D:/.Work/postgresql/postgresql-8.1.2/src/include/postgres.h:48, > from fd.c:8: > D:/.Work/postgresql/postgresql-8.1.2/src/include/c.h:328: error: > redefinition of typedef 'sig_atomic_t' > C:/Dev-Cpp/include/signal.h:46: error: previous declaration of > 'sig_atomic_t' was here > > In file included from > D:/.Work/postgresql/postgresql-8.1.2/src/include/access/tupdesc.h:18, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/utils/rel.h:17, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/storage/bufmgr.h:21, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/storage/bufpage.h:18, > > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/access/htup.h:17, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/utils/tqual.h:18, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/access/relscan.h:18, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/nodes/execnodes.h:17, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/executor/execdesc.h:19, > from > D:/.Work/postgresql/postgresql-8.1.2/src/include/executor/executor.h:17, > from fd.c:10
В списке pgsql-hackers по дате отправления: