[uClibc] i386 toolchain - Help needed !!!
ONSIGHT at t-online.de
ONSIGHT at t-online.de
Thu Oct 23 11:59:55 UTC 2003
I try to build a i386 toolchain with the uClibc toolchain using gcc3.3.
The build works well without any errors.
But compiling the following program with the new crosscompiler failed.
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
class tool
{
public: virtual void hello();
};
void tool::hello() {
printf("Hello toolchain");
}
tool mytool;
int main(){
mytool.hello();
return 0;
}
linux:/home/moessner/devel/toolchain_i386 # ./bin/i386-uclibc-c++ -o
testcpp test.cpp
In file included from
/home/moessner/devel/toolchain_i386/include/c++/memory:55,
from
/home/moessner/devel/toolchain_i386/include/c++/string:48,
from test.cpp:3:
/home/moessner/devel/toolchain_i386/include/c++/bits/stl_alloc.h:382:
error: parse
error before `;' token
/home/moessner/devel/toolchain_i386/include/c++/bits/stl_alloc.h:452:
error: syntax
error before `<' token
/home/moessner/devel/toolchain_i386/include/c++/bits/stl_alloc.h:452:
error: `
__threads' was not declared in this scope
/home/moessner/devel/toolchain_i386/include/c++/bits/stl_alloc.h:452:
error: `
__inst' was not declared in this scope
/home/moessner/devel/toolchain_i386/include/c++/bits/stl_alloc.h:452:
error: template
argument 1 is invalid
/home/moessner/devel/toolchain_i386/include/c++/bits/stl_alloc.h:452:
error: template
argument 2 is invalid
In file included from
/home/moessner/devel/toolchain_i386/include/c++/string:53,
from test.cpp:3:
/home/moessner/devel/toolchain_i386/include/c++/bits/basic_string.h:166:
error: '
_Atomic_word' is used as a type, but is not defined as a type.
linux:/home/moessner/devel/toolchain_i386 #
The program compiled without any error when I comment out #include
<string>
If not I got the following error. The same happened using <iostream>
<vector>
etc.
The same thing happened with the uClibc toolchain using gcc 3.2
Did anyone have the same problems and knows how to get out of this
problem ?
I would be very happy to get some help.
Martin
--
More information about the uClibc
mailing list