Re: [Boost-users] linker problem with regex library - resolved
I get the linker error (see below) if I try to compile my test app. What is the problem?
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "__gxx_personality_sj0" in input file "/opt/boost/lib/libboost_regex-gcc.
No idea, I did a quick google for this error message and it seems to be a common error when people are building shared libraries, but with one of
Hello, I could get the boost libraries linked against my application if I compile the boost libraries with -fpic (bjam "-sBUILD=release debug <cxxflags>-fpic" "-sTOOLS=gcc" install). I think you should use -fpic as default parameter in the boost build for gcc on (at least) HP/UX PA RISC 11.11. The -fPIC choice always works, but may produce larger code than -fpic. Using -fpic option usually generates smaller and faster code, but will have platform-dependent limitations, such as the number of globally visible symbols or the size of the code. The linker will tell you whether it fits when you create the shared library. When in doubt, I choose -fPIC, because it always works. @John: would this be possible? With regards, Oliver the
components not built with -fPIC. So for example if you tried to link a static regex build into a shared lib. Does this sound familiar?
John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (1)
-
Oliver.Kowalke@infineon.com