Re: cpp Makefiles

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: cpp Makefiles
Дата
Msg-id Pine.LNX.4.30.0104150020360.761-100000@peter.localdomain
обсуждение исходный текст
Ответ на cpp Makefiles  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
Ответы Re: cpp Makefiles  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
g++ not working for postgresql extension languages?  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
Re: cpp Makefiles  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
Список pgsql-interfaces
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