Static link with libpq

Поиск
Список
Период
Сортировка
От Matthew Hagerty
Тема Static link with libpq
Дата
Msg-id 3.0.3.32.19980721161630.00697780@wolfepub.com
обсуждение исходный текст
Список pgsql-interfaces
Greetings,

Is it possible to compile a C program that uses libpg as a static program?
I tried the obvious:

# gcc -I../pgsql/include -L../pgsql/lib -static -o test test.c -lpq

This is my error:

ld: No reference to __DYNAMIC

I'm using gcc-2.7.2.1 on FreeBSD-2.2.6-Release and PG-6.3.2

Any insight would be greatly appreciated.  Also, please to cc me, as I am
not yet on the list.

Thanks,
Matthew


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

Предыдущее
От: Brett McCormick
Дата:
Сообщение: Re: [INTERFACES] jdbc notification
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: [INTERFACES] JDBC JAVA interface