Building extensions on Windows using VS2008

Поиск
Список
Период
Сортировка
От deepak
Тема Building extensions on Windows using VS2008
Дата
Msg-id AANLkTik11XD=GWSHdB5kJ2AYYru9saxmDm1dG6Qhya1U@mail.gmail.com
обсуждение исходный текст
Ответы Re: Building extensions on Windows using VS2008  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
Hi!

I was trying to build PostgreSQL 9.0.1 using VS2008.  I am having problems building the C extensions.  I could build the main package, though.

Although, I can get a DLL by including the header files from postgres, that DLL is quite not usable.  When I try to create a function inside
psql, I get an error such as:
ERROR:  could not find function "<function-name>" in file  <dll-name>

Although the same C source file can be built using MinGW and is usable that way.  I don't want to use MinGW as I learn that it supports
only 32-bit binaries (which has performance implications).

Here is the CL command line I'm using to compile:
cl /I \pgsql\include\server /I \pgsql\include\server\port\win32 /LD \pgsql\lib\postgres.lib <c-filename>

--
Deepak

В списке pgsql-general по дате отправления:

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Alter Default Privileges Does Not Work For Functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Alter Default Privileges Does Not Work For Functions