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.