> 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