[ELDK] Error in c++ libraries ?

Detlev Zundel dzu at denx.de
Thu Mar 24 14:33:02 CET 2011


Hi Thibault,

>  Hello
>
> I recently tried to build a XML-parser for an embedded linux (on ppc440) target using the ELDK g++ cross compiler (version 4.2.2).
>
> This is an extract of what we get during the building process :
>
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h:46: error: expected constructor, destructor, or type conversion before '(' token
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h:55: error: expected type-specifier before 'allocator'
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h:55: error: expected '>' before 'allocator'
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h:60: error: template argument 3 is invalid
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h:60: error: invalid type in declaration before ';' token
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h:68: error: '_GLIBCXX_END_NAMESPACE' does not name a type
> In file included from /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/cstring:51,
>                  from /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/char_traits.h:45,
>                  from /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/string:47,
>                  from /home/pi21/Téléchargements/xsde-3.2.0-i686-linux-gnu/libxsde/xsde/cxx/ro-string.hxx:14,
> [...]
>
> /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/cstddef:58: error: '_GLIBCXX_END_NAMESPACE' does not name a type
> In file included from /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/bits/char_traits.h:45,
>                  from /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/string:47,
>                  from /home/pi21/Téléchargements/xsde-3.2.0-i686-linux-gnu/libxsde/xsde/cxx/ro-string.hxx:14,
>
>
>
>
> I never even opened any c++ library file before getting this error.
>
> But if I analyse the  /opt/eldk/ppc_4xx/usr/include/c++/4.2.2/bits/stringfwd.h file , I see a #include <bits/c++config.h> whereas there is no c++config.h at all, I don't really understand ...

Maybe you should check your ELDK installation as I see this here:

[dzu at pollux ppc_4xx]$ pwd
/opt/eldk-4.2/ppc_4xx
[dzu at pollux ppc_4xx]$ find . -name c++config.h 2>/dev/null
./usr/include/c++/4.2.2/powerpc-linux/bits/c++config.h
[dzu at pollux ppc_4xx]$ 

Best wishes
  Detlev

-- 
When you  loosen yourself from  all the obvious delusions  - religion,
ideology,  Communism - you're  still left  with the  myth of  your own
goodness. Which is the final delusion.
                                          -- Philip Roth
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the eldk mailing list