HerbertKoelman / cpp-atmi

Application-to-Transaction Monitor Interface (ATMI) C++ library
http://herbertkoelman.github.com/cpp-atmi
Other
7 stars 0 forks source link

Sample code doesn't compile #7

Closed HerbertKoelman closed 11 years ago

HerbertKoelman commented 11 years ago

[herbert@vps11071 atmi++]$ make qtest CC=g++ \ CFLAGS="-x c++ -g -O2 -I../../include -I/home/tuxadm/tuxedo12.1.1.0/include -L/home/tuxadm/tuxedo12.1.1.0/lib -L../../lib -lpthread " \ buildclient -v \ -o qtest \ -f qtest.bcl \ -l -lfml++ \ -l -lcltatmi++ \ -l -latmiutl++ g++ -x c++ -g -O2 -I../../include -I/home/tuxadm/tuxedo12.1.1.0/include -L/home/tuxadm/tuxedo12.1.1.0/lib -L../../lib -lpthread -I$TUXDIR/include -o qtest -L${TUXDIR}/lib qtest.bcl -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread -lfml++ -lcltatmi++ -latmiutl++ qtest.bcl: In member function 'virtual void Dequeuer::run()': qtest.bcl:66:38: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] qtest.bcl:66:38: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] qtest.bcl:68:59: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] qtest.bcl: In member function 'virtual void Queuer::run()': qtest.bcl:119:49: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] qtest.bcl:119:49: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] qtest.bcl:119:49: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] qtest.bcl:121:60: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] ../../lib/libcltatmi++.a(Tp.o): In function `atmi::Tp::call(atmi::Buffer, int_, int, int)': Tp.C:(.text+0x263): undefined reference to atmi::Buffer::size()' Tp.C:(.text+0x273): undefined reference toatmi::Buffer::get_buffer()' Tp.C:(.text+0x283): undefined reference to atmi::Buffer::size()' Tp.C:(.text+0x292): undefined reference toatmi::Buffer::get_buffer()' Tp.C:(.text+0x2dc): undefined reference to atmi::Buffer::set_buffer(Fbfr32_)' ../../lib/libcltatmi++.a(Tp.o): In functionatmi::Tp::acall(atmi::Buffer)': Tp.C:(.text+0x383): undefined reference toatmi::Buffer::size()' Tp.C:(.text+0x392): undefined reference toatmi::Buffer::getbuffer()' ../../lib/libcltatmi++.a(Tp.o): In function`atmi::Tp::reply(atmi::Buffer, int, int)': Tp.C:(.text+0x441): undefined reference to atmi::Buffer::get_buffer()' Tp.C:(.text+0x451): undefined reference toatmi::Buffer::size()' Tp.C:(.text+0x490): undefined reference to atmi::Buffer::set_buffer(Fbfr32_)' ../../lib/libcltatmi++.a(Queue.o): In functionatmi::Queue::enqueue(atmi::Buffer)': Queue.C:(.text+0xd0): undefined reference toatmi::Buffer::get_buffer()' ../../lib/libcltatmi++.a(Queue.o): In functionatmi::Queue::dequeue(atmi::Buffer)': Queue.C:(.text+0x115): undefined reference toatmi::Buffer::get_buffer()' Queue.C:(.text+0x151): undefined reference toatmi::Buffer::setbuffer(Fbfr32)' collect2: error: ld returned 1 exit status CMDTUX_CAT:512: ERROR: Cannot execute C compiler g++ -x c++ -g -O2 -I../../include -I/home/tuxadm/tuxedo12.1.1.0/include -L/home/tuxadm/tuxedo12.1.1.0/lib -L../../lib -lpthread -I$TUXDIR/include -o qtest -L${TUXDIR}/lib qtest.bcl -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread -lfml++ -lcltatmi++ -latmiutl++ make: _* [qtest] Error 1