Re: cpp Makefiles

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: cpp Makefiles
Дата
Msg-id
Pine.LNX.4.30.0104150020360.761-100000@peter.localdomain
Ответ на
cpp Makefiles (Lonnie Cumberland)
Список
Дерево обсуждения
Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff Brendan Guenther <guenthe8@msu.edu>
Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff Lonnie Cumberland <lonnie_cumberland@yahoo.com>
Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff Tom Lane <tgl@sss.pgh.pa.us>
Lonnie Cumberland writes:

> does someone have a simple Makefile that will allow me to compile up C++
> functions and either link in the libfile.a files or could please tell me how to
> make libfile.so out of them?

There is no simple Makefile to do that, that's the problem.  If you need
help with your particular setup you should show in detail what you already
have and precisely what problem occurred.  If you're using the makefiles
from the PostgreSQL tree, I suggest you update to 7.1 and look into
src/interfaces/libpq++ for an example.  Also make sure your functions are
using C linkage (extern "C"), otherwise PostgreSQL won't find them.  And
avoid static constructors.  In general, C++ shared libraries are a complex
area that is hard to get right.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


В списке pgsql-interfaces по дате отправления
От: Lonnie Cumberland
Дата:
Сообщение: cpp Makefiles
От: Lonnie Cumberland
Дата:
Сообщение: Re: cpp Makefiles
FAQ