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
g++ not working for postgresql extension languages? Re: cpp Makefiles |
Список | 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 по дате отправления: