Linker error in "Xcode project using .dylib"

Joined
Oct 3, 2016
Messages
1
Reaction score
0
Points
1
When I add Release build .dylib to command line project then it gives error while compiling as follow
:=

Undefined symbols for architecture x86_64:
"hello()", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Note:- "hello()" is the function which is declared in .h file in added .dylib
I have also added that .h file to my command line project.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top