Anybody has any idea about what is this and how can I solve this build error ??
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
thanks in advance.
Install libc++
You can download from:
http://libcxx.llvm.org/
Related
I am trying to create an Xcode project with wxWidgets applications.
I follow the manual of wxwidgets:
....
-lz -stdlib=libstdc++ -lwx_osx_cocoa_static -Xlinker -dependency_info -Xlinker
....
ld: library not found for -lwx_osx_cocoa_static
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea how to fix this?
If I look for the library the name is: "libwx_osx_cocoa_static.a"
Amazing! so simple: I added the library path (to libwx_osx_cocoa_static.a) and compilation succeeded! Add to Library search Pathes: $(WXROOT)/build/osx/build/Debug/
I've got this error and can't find anything about it (-lAdIdAccess):
ld: warning: directory not found for option '-L/Users/macbook/Desktop/rapid ball/Rapid'
ld: warning: directory not found for option '-LBall'
ld: warning: directory not found for option '-LBall/googleanalytics'
ld: library not found for -lAdIdAccess
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What should I do?
ld: file not found: /Users/eduardoRojas/Library/Developer/Xcode/DerivedData/MoveThemNOW-gkrqwdnrkcwmgygipvtpedxmqpjz/Build/Products/Debug-iphonesimulator/Move Them NOW.app/Move Them NOW
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i don't know what is happening please help
i try to build a small iOS app with dreamfactory as backend.
When i build the app with the librarys from dreamfactory i'm getting a mach-o linker error:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help me.
Sorry for my bad englisch.
I cant comment yet, so I'll have to post here. This was addressed already in this thread: https://github.com/dreamfactorysoftware/ios-sdk/issues/1
I am trying to compile boost C++ using clang.
./b2 --prefix=~/boost --includedir=~/boost/include --libdir=~/boost/lib toolset=clang cxxflags="-std=c++11 -stdlib=libc++ -isystem ~/libcxx/include/" linkflags="-stdlib=libc++ -L ~/libcxx/lib/"
When I see log file it gives error saying
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
__GLOBAL__I_a in exceptions.o
"boost::system::generic_category()", referenced from:
__GLOBAL__I_a in exceptions.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
my default clang is clang-mp-3.3. Can anyone please help me figure out what this problem is.
After searching for the reason of error in the web I found this which explain about compiling boost with clang. I am not sure why adding define=BOOST_SYSTEM_NO_DEPRECATED made it worked. Please do comment anyone who knows why it worked. I was then able to compile with no error but I still see some warnings but it worked for me for now.
The default clang I am using is (clang-mp-3.3)
$ clang -v
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
./bootstrap.sh --with-toolset=clang --without-libraries=mpi,python,graph_parallel
./b2 clean
./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" define=BOOST_SYSTEM_NO_DEPRECATED