0

So I am trying to get g++ to work on my iPad, and I am having a linking error. I have been able to make gcc work perfectly however, when I use g++ to compile a simple c++ Hello World file, I get a linking error. Additionally, the export statement is so the headers will import.

Marks-iPad:~ mobile$ su                                                
Password:                                                              
marks-iPad:/var/mobile root# export CPLUS_INCLUDE_PATH=/private/var/include/c++/4.0.0/:/private/var/include/c++/4.0.0/i686-apple-darwin9/     
marks-iPad:/var/mobile root# g++ Hello.cpp                             
ld: library not found for -lstdc++                                     
collect2: ld returned 1 exit status                                    
marks-iPad:/var/mobile root#                                                                                                                                                                                                                                                                                                                                                                                                                                                   
4

0 回答 0