I made a very simple source file using some of the functions listed in the error message, and then compiled it with your command line without errors.
It looks like you're compiling a 32-bit library on a 64-bit system. Are you sure the xalan libraries are 32-bit? If that's not it, can you provide more info? Compiler version, OS version, origin of the xalan libs, a small source file that reproduces the problem, etc. Regards, Bill On Tue, Oct 27, 2015 at 01:05:18PM +0530, Subharthee K Dutta wrote: > Hi, > > I am trying to build a shared library with Xalan 1.11 but am getting > the > linking error in spite of having everything in place. Can you please let me > know what should I do to build it. > > > /usr/bin/g++ -shared -m32 -Xlinker -zdefs > "-L/opt/oracle/product/current/lib32" > "-L/opt/tuxedo/tuxedo12.1.3.0.0/lib" "-L/opt/xerces-c-3.1.2/lib" "-L/opt/ > xalan-c-1.11/lib" "-L/opt/apps/boost.1.45/lib" "-L/vobs/NBE_pcmp/projroot/lib" > -Wall -pthread -fPIC -ggdb -z defs -o /vobs/NBE_pcmp/projroot/lib/ > libXalanPlugin.d.so /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.o > -lxalan-c -lxalanMsg -lxerces-c -lm -lc > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.o: In function > `XMLTransformer::transform(std::basic_string<char, std::char_traits<char>, > std::allocator<char> > const&, char const*)': > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:43: undefined > reference to `xalanc_1_11::XalanMemMgrs::getDefaultXercesMemMgr()' > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:43: undefined > reference to `xalanc_1_11::XalanTransformer::initialize > (xercesc_3_1::MemoryManager&)' > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:47: undefined > reference to `xalanc_1_11::XalanMemMgrs::getDefaultXercesMemMgr()' > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:47: undefined > reference to `xalanc_1_11::XalanTransformer::XalanTransformer > (xercesc_3_1::MemoryManager&)' > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:47: undefined > reference to `xalanc_1_11::XalanTransformer::~XalanTransformer()' > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:51: undefined > reference to `xalanc_1_11::XalanTransformer::terminate()' > /vobs/NBE_pcmp/projroot/src/framework/xml/XMLTransformer.cpp:57: undefined > reference to `xalanc_1_11::XalanTransformer::ICUCleanUp()' > > > > Regards, > > SUBHARTHEE K DUTTA > Technical Analyst / Lead > JBG > > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ > Phone:91-33-2339-7070 | Mobile:91-98306-21161 > IBM > E-mail: [email protected] > Chat:Google Talk: [email protected] Skype: Dlf It Park, > Plot No. 08-mar > subharthee.dutta Yahoo! Messenger: > Kolkata, WB 700156 > [email protected] > India > Find me on: Orkut: http://www.orkut.co.in/Main#Profile? > uid=7931546849288771756 GooglePlus: https:// > plus.google.com/105598470126669125495YouTube: http:// > www.youtube.com/user/subharthee1?feature=mhee Facebook: > https://www.facebook.com/subharthee.dutta > "If you have control over every bit of your own self, you > can control the whole Universe." > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
