Boost.Python linking error on Scratchbox
I have a program that uses Boost.Python and it compiles & links in normal desktop environment at x86 architecture (Ubuntu Linux) without any problems. I've compiled the same Boost libraries (1.37) in Scratchbox ARM environment, since my goal is to get my program running in Nokia N800 Internet Tablet as well. Compiling is successful, but when I try to link my code to Python libraries I get the following error: /usr/local/lib/libboost_python-gcc34-mt-1_37.so: undefined reference to `PyUnicodeUCS2_AsWideChar' /usr/local/lib/libboost_python-gcc34-mt-1_37.so: undefined reference to `PyUnicodeUCS2_FromEncodedObject' collect2: ld returned 1 exit status I haven't had any problems with other Boost libraries I've used in Scratchbox. Should I compile the Boost.Python libraries with some specific parameter? -- View this message in context: http://www.nabble.com/Boost.Python-linking-error-on-Scratchbox-tp22176960p22... Sent from the Boost - Users mailing list archive at Nabble.com.
On Feb 24, 2009, at 2:09 AM, Taneli R. wrote:
I have a program that uses Boost.Python and it compiles & links in normal desktop environment at x86 architecture (Ubuntu Linux) without any problems. I've compiled the same Boost libraries (1.37) in Scratchbox ARM environment, since my goal is to get my program running in Nokia N800 Internet Tablet as well.
Compiling is successful, but when I try to link my code to Python libraries I get the following error:
/usr/local/lib/libboost_python-gcc34-mt-1_37.so: undefined reference to `PyUnicodeUCS2_AsWideChar' /usr/local/lib/libboost_python-gcc34-mt-1_37.so: undefined reference to `PyUnicodeUCS2_FromEncodedObject' collect2: ld returned 1 exit status
I haven't had any problems with other Boost libraries I've used in Scratchbox. Should I compile the Boost.Python libraries with some specific parameter? boost-users
This isn't really a Boost.Python problem. It looks like you may be compiling against one version of the Python library headers but linking against another one, but that's just a wild guess. I suggest you check in with the regular Python mailing list if you are still stumped. Not that I mind you asking here, but I don't think there's much I can do to help -- David Abrahams BoostPro Computing http://boostpro.com
participants (2)
-
David Abrahams
-
Taneli R.