Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ld: symbol(s) not found for architecture x86_64.

I am trying to compile a simple C++ code, OS (10.10.4) with a command line like in the following:


clang++ -o Cylinder Cylinder.cxx readfile.cxx -stdlib=libc++ -std=c++11 -I/usr/include/c++/4.2.1/ -v

and I am getting the error:

___cxx_global_var_init in readfile-8f19c5.o

ld: symbol(s) not found for architecture x86_64

in the output , I realized the following line:

ignoring nonexistent directory "/usr/include/c++/v1"

is my error associated with line above?. I have recently upgraded to Yosemite and reinstalled Xcode, should I reinstall the OS to have the command line tools configured properly (which I am really shying away from)?

thanks.

Posted on Jul 31, 2015 2:33 AM

Reply

There are no replies.

ld: symbol(s) not found for architecture x86_64.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.