[xsde-users] Error building xsde 3.0.0

Boris Kolpackov boris at codesynthesis.com
Thu Mar 24 13:34:18 EDT 2011


Hi,

[CC'ed xsde-users in case someone else runs into the same problem.]

Dol Guldur <dolguldur49 at hotmail.com> writes:

> Sorry for the delay, the code you gave for testing c++ library doesn't
> seem to cause any trouble when compiling:
> 
> #include "/opt/eldk/ppc_4xx/usr/include/c++/4.2.2/string"
> //#include<string>
> 
> int main ()
> {
>   std::string str ("test");
> }
> 
> powerpc-linux-g++ ./test.cpp 
> 
> And i haven't any file called like that :
> > /home/pi21/eldklinux/ppc_4xx/usr/include/c++/4.2.2/ppc-linux/bits/c++config.h
> 
> whereas I have an #include <bits/c++config.h> in [...]/bits/stringfwd.h !!
> 
> I don't know how it's possible that the eldk tool is incomplete

Ok, I think I know what's going on. Your powerpc-linux-g++ cross-compiler
probably uses incorrect include path to find <string>. It is most likely
using your native compiler's headers (I presume that's why you put absolute
path instead of #include<string>). The way to make powerpc-linux-g++ use
the correct headers would be to add:

-I/opt/eldk/ppc_4xx/usr/include/c++/4.2.2/

To the CPPFLAGS variable in etc/config.make in XSD/e. Can you try this
and see if it helps?

Boris



More information about the xsde-users mailing list