cloudfx Posted August 30, 2013 Share Posted August 30, 2013 I don't know if it is something to do with Houdini for Mountain Lion using clang.. (not gcc) I had gcc 4.2 which was installed from XCode "Command Line Tool" and tried gcc 4.7 or clang but all of them having same error. I am having a compile error which is weird because it was working by yesterday and it just won't compile with below error now.. (DESPERATELY NEED HELP) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status and compile command below gcc -o test test.cpp This simple code below won't compile. #include <iostream> int main(){ std::cout << "SAO" << std::endl; return 0; } I've tried putting -m32 just in case but still give me error below. ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status Using Mac OSX Lion, installed Xcode command line to run command on terminal. It used to work and it just won't work anymore for any of my other codes.. I tried to re-install my command line tool but still same errors. Please Help me. Quote Link to comment Share on other sites More sharing options...
cloudfx Posted August 30, 2013 Author Share Posted August 30, 2013 it appears to be using -lstdc++ solves the problem , otherwise I had to use g++.. and also I did not include all the base class .cpp files.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.