From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-01 02:36:05
On Tuesday 31 October 2006 19:17, Monica Gretzer wrote:
> I want to install the Boost libraries and use them in C++ programs that I
> compile with a uclinux-compiler. The compiler source code
"source code"? I think that's not relevant, did you mean "compiler binaries"?
> is located in a
> directory that we can call DIR. When I install the Boost libraries I try
> bjam "sTOOLS=gcc" "--prefix=DIR" install
This builds Boost with the system compiler, right?
> The problem is that when I try to compile my testcode with the
> uclinux-compiler, I get errors like: ..../libboost_thread.so: undefined
> reference to 'strerror_at_GLIBC_2.0' ..../libboost_thread.so: undefined
> reference to 'pthread_once_at_GLIBC_2.0'
Apparently, libc that uclinux compiler has is not 2.0. And in fact, I doubt
that your uclinux compiler targets the same processor that your host gcc, and
even then, mixing files built by system compiler and uclinux compiler is not
going to work.
Boost.Build does not have a supported solution for cross-compiles, but you can
before building boost. Make sure that Boost is built with uclinux compiler.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk