[uClibc] Issues w/STL when compiling C++ -- (TARGET_DIR)/usr/include
Manuel Novoa III
mjn3 at codepoet.org
Mon Nov 3 22:31:32 UTC 2003
Hello Jeff,
On Mon, Nov 03, 2003 at 02:18:04PM -0800, Jeffrey Baitis wrote:
> Hi all. I've seen a couple of not-very-informative posts concerning this
> problem in the past.
>
> Suppose I have my root filesystem image mounted under /mnt/root_fs.
> I've noticed that, when compiling C++ code, if do the following:
>
> /opt/build/buildroot/build_mipsel_nofpu/staging_dir/bin/mipsel-linux-g++
> -I/mnt/root_fs/usr/include foo.cpp
>
> Then I get the following errors, presumably with the STL:
...
> Now, if I instead OMIT the -I/mnt/root_fs/usr/include (which seems
> wrong, because all my includes should go in there), then the compile
> works.
Omitting that isn't wrong. You shouldn't mix the include trees for
the cross compiler and the target native compiler.
Manuel
More information about the uClibc
mailing list