From: wink <wi...@ge...> - 2004-09-03 13:22:12
|
Lennert, I looked at crosstool as I need something to build C++ code with asap. I'm still in the process of building things but according to the crosstool docs, I don't have a chance of making this work :). From their docs: "These scripts don't support ucLibc." I'm gonna give it a shot and see if I can make it work anyway because I'm stubborn. Craig, I looked a little bit at the current version of things, and there is some madness going on. The g++ binary fails to execute with an error of "No such file or directory" .... I tried to strace it in the hopes of seeing what file or directory didn't exist, to no avail. The gcc binary fails to build with some stl errors (in basic_string.h). The oddest thing so far is that I was able to make the arm-linux-gcc-3.4.1 binary build the code and amusingly enough it actually runs. But here is the code with the correct gcc args :): #include <stdio.h> #include <vector> #include <string> using namespace std; int main() { vector<string> test; string output = "a quick stl test"; test.push_back(output); printf("%s\n", test[0].c_str()); return 0; } I was able to build this with: arm-linux-gcc-3.4.1 hello.cpp -lstdc++ -luClibc-0.9.26 -o hello -wink |