Alex, I think I found the problem : -lfbclient can't find libfbclient.so I added /opt/fb3cs/lib to ldconfig.conf.d but it don't changes anything.
Finally I changed the compile command to : $ LC_ALL=C g++ -Wall -I../firebird/src/include -o firetest -fPIC firetest.cpp /opt/fb3cs/lib/libfbclient.so And it worked like a charm. Now I started playing with the new API. I created a project on github for it : https://github.com/zedalaye/fb3-oo-api Is the OO API complete ? I think very strange to still have to build DPB by hand... Can you expose something that may give access to the ClumpletWriter to ease that ? At least, I can create and drop a database ;-) But I would be able to set up more complex fields like the default dialect, the page size and the default character set. Regards, -- Pierre Yager On Mon, Nov 28, 2011 at 8:55 PM, Pierre Y. <pier...@users.sourceforge.net> wrote: >> g++ -Wall -I../../src/include -lfbclient -o libUdrCppExample.so -fPIC >> UdrCppExample.cpp ../../gen/Debug/firebird/plugins/libudr_engine.so -shared > > Thank you Alex for the answer. It compiled ! I don't know how to test > if it works, but it compiled ;-) > > Next I want to compile a VERY simple piece of code, a kind of > 'fb_get_master_interface hello world' : > > $ cat firetest.cpp > #include "ibase.h" > #include "firebird/Interface.h" > > int main() > { > Firebird::IMaster *master; > master = fb_get_master_interface(); > return master != NULL; > } > > I tried to compile with : > > $ LC_ALL=3DC g++ -Wall -I../firebird/src/include -lfbclient -o firetest > -fPIC firetest.cpp > /tmp/cc4TW3Oa.o: In function `main': > firetest.cpp:(.text+0x9): undefined reference to `fb_get_master_interface' > collect2: ld returned 1 exit status > > Can you give me some hints again to go a step further ? > > Regards, > > -- > Pierre Yager > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel