calabash.framework not found when linking using -force_load - calabash

I am trying to link calabash.framework using Xcode 8 and calabash 0.20.3 but keep getting
ld: file not found: project_dir/calabash.framework/calabash -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I believe I have set the correct linker options and that my calabash.framework actually does exist at the path. I downloaded the calabash.framework using calabash-iso download in the project_dir. Checked the versions and its 0.20.3.
Linker Flags
Calabash Framework
Any direction would be greatly appreciated.

I think you need to move the -lc++ to before the --force_load.

Related

Library not found for -lglfw3

I am trying to learn openGL and the first step is to build and link the glfw3 library to my xcode project. However, I keep getting ld: library not found for -lglfw3 clang: error: linker command failed with exit code 1 (use -v to see invocation).
I realized the problem is caused by having libglfw3.a in my Link Binary With Libraries in my project settings.
I got libglfw3.a from building glfw source code.
Can anyone help me with this?
Okay so the problem solved by checking if the lib file is actually in the xcode project. Those yellow folder things are actually not the real directory structure.

vscode g++ Link failure : Undefined symbols for architecture x86_64

Basic Info:
system: macOS High Sierra(10.13.6)
editor : vs code(latest version)
Compiler: g++ (Xcode)
Target:deploy GLFW + GLAD
Question Description:
Recently, I'm learning to do some Computer Graphics related work. Everything is going smooth. However, when i create a window to test the env.Link error happened:
Undefined symbols for architecture x86_64:
"_gladLoadGLLoader", referenced from:
_main in main-5c211c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The terminal process terminated with exit code: 1
It seems I have not link some third party file. I
have fixed exactly the same problem by add "-lglfw" args to g++ when using functions in glfw3.h.
But when meeting glad related function : gladLoadGLLoader, I don't know how to do.
Something I have done:
Can find the head file.
#include glad/glad.h
#include GLFW/glfw3.h
Have put the file "glad.c" in workspace.
Try to Add "g++ -framework XXXXX" , But doesn't work.
Try to Add "g++ -lglfw3", But doesn't work.
Add "g++ -L or I /usr/lib or /usr/local/lib or /usr/local/include", But doesn't work.
Just tell the g++ to compile glad.c by adding "glad.c" to args. I thought glad.c will be compiled by default. Although I am not clear what happened, the problem is resolved anyway.
Add glad.c into Build Phases->Compile Sources

Xcode C++ linker bug or missing setting ?

I got this a strange linker error.for my Xcode 7.3.1
I add the library libtbb.dylib to my C++ project under Build Phase->Link Binary with Libraries
When the linker launches, it adds the switch
-ltbb
instead of the expected
-libtbb
As a result, I get this link error:
ld: library not found for -ltbb clang: error: linker command failed with exit code 1 (use -v to see invocation)
How does this get fixed? Is there a setting I am missing?
Thanks
Thanks Mike Kingham, your hints was exactly it. Specify the library in the Build Phases-Link binary with library. You also need to specify the library search path under Build Settings as well.

-I and -L and -l are all correct, but I still get a linker error

gcc test.cpp -I/CORRECT_DIRECTORY_FOR_HEADERS -L/CORRECT_DIRECTORY_FOR_LIBRARIES -llibshogun (name is libshogun.dylib)
I get
ld: library not found for -llibshogun clang: error: linker command
failed with exit code 1 (use -v to see invocation)
No idea why. Any help would be much appreciated.
I've tried setting the -rpath like such:-Wl,-rpath,/CORRECT_DIRECTORY_FOR_LIBRARIES
That also does not change the error.
The library absolutely exists. I can see it quite clearly in my finder. I am on OSX.
Thank you to anyone that helps!
Use -lshogun without lib prefix.

sql::mysql::get_driver_instance() Symbol not found

I'm trying to link the mysql native API to my server software now... With little luck. When compiling in Xcode on OSX10.9 using the flags
$(OTHER_CFLAGS) -I /usr/local/boost_1_55_0/ -I
/usr/local/mysqlconn/include/ -I /usr/local/mysqlconn/lib/
I get the compiler/linker error:
Undefined symbols for architecture x86_64:
"sql::mysql::get_driver_instance()", referenced from:
sql::mysql::get_mysql_driver_instance() in SQLComm.o ld: symbol(s) not found for architecture x86_64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
I really have no idea why though. The API files were downloaded by me today, and extracted at the included paths. I include all the files from include and include/cppconn in the server program that uses the function the linker cannot found.
Any ideas what I am doing wrong?
I see you configuring include directories, but I don't see any libraries listed there.
You need to link in the library when you build your project.