Re: postgres.h

Поиск
Список
Период
Сортировка
От Jason Tishler
Тема Re: postgres.h
Дата
Msg-id 20031106205100.GB648@tishler.net
обсуждение исходный текст
Ответ на Re: postgres.h  ("Nupur Pande" <npande@vt.edu>)
Список pgsql-cygwin
Nupur,

On Thu, Nov 06, 2003 at 11:37:23AM -0500, Nupur Pande wrote:
> My makefile looks like this:
>
> RuleFinder.so: RuleFinder.o
>     gcc -shared -lpostgres -L /usr/lib -o RuleFinder.so RuleFinder.o

Under Cygwin, the order of link command line arguments is important.
Does the following work?

    gcc -shared -o RuleFinder.dll RuleFinder.o -lpostgres -L/usr/lib

Note you should use ".dll" not ".so" under Cygwin (i.e., Windows).

> Thanks for the help!

You are welcome, but next please include error messages.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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

Предыдущее
От: "ADH"
Дата:
Сообщение: initdb failing
Следующее
От: Jason Tishler
Дата:
Сообщение: Re: shared memory