Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Saturday, March 23 2019 @ 10:59 PM UTC

How to link to a dylib ?

ProjectBuilder-XCodeI have a problem linking my project to a dylib of my own: the dylib is correctly installed in the search path and I have the correct -lMyLib flag set in the linker option, but the linker always report an "Undefined symbol: xxx". What can be wrong?

To be used with the -l linker flag the installed dylib file must have a name starting with lib. Renaming your dylib file (the one installed in the search path) from MyLib to libMyLib should solve the problem of the linker not seeing your dylib.
(You may discover other problems after that of course…)

What's Related

Story Options

How to link to a dylib ? | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2019 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.07 seconds