On 11/28/11 04:01, Pierre Y. wrote:
> Hi all,
>
> If I understood well the conference about Providers, Plugins and new OO API
> from Alex this week-end at the Firebird Conference, all we have to do to
> enter the new OO API is to find the new fb_get_master_interface method and
> play with the new IMaster interface ?
>
> Well. I found the fb_get_master_interface method in the binaries
> (libfbclient.so) but nowhere in the ibase.h file. Nor I can see any
> firebird/*.h in the include directory of the freshly compiled distribution
> of Firebird "HEAD"
>
> So I think I must use the include files from the source tree. I tried to
> compile the UDR sample in $SOURCE/examples/udr without success :
>
> I tried with something like :
>
> g++ -Wall -I ../../src/include -L fbclient -o UdrCppExample
> UdrCppExample.cpp
>
> I get tons of "undefined references to...

'-L fbclient' instead -lfbclient is not good idea :-)
You should also link with C++ UDR plugin libudr_engine.so.

And remember - you build shared library, i.e. please use -shared switch.
Something like this:
g++ -Wall -I../../src/include -lfbclient -o libUdrCppExample.so -fPIC
UdrCppExample.cpp ../../gen/Debug/firebird/plugins/libudr_engine.so -shared

Do not worry about "libudr_engine.so not found" message in ldd output -
it will be found at runtime.


------------------------------------------------------------------------------
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

Reply via email to