Hi!
I already searched on Google for hours now, about this problem....
Nothing worked for me....
My problem..
I have a c++ program, I want to compile for 32bit pc's... I have 64bit Ubuntu..
64bit compiling worked well, no errors
I read that I have to add -m32 to compile for 32 bit...
So far so good...
There was the SDL 32bit library missing... I downloaded it...
Okay...
Now the lstdc++ 32bit is missing... I downloaded, but it always says:
Code:
g++ -m32 main.cpp -o Bubbles32 -lSDL -lSDL_ttf -lstdc++ -Wall
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
How can I fix this?
Please help me,
Yours,
Daniel
Bookmarks