This sounds so basic, but I am trying to add a library to my XCode 3.0 project so it will link. (It happens to be a dynamic library.) I have not found any line in the project settings/options that pertain directly to libraries, nor any menu option to "add library". When I tried to add -L... -l... as compile or linker flags as if I were doing a gcc command line compile with a library, it did not complain, but also did not link against the library. This may be complicated because it is a shared library, so in principle XCode should not attempt to resolve the library functions until run time, but I don't know how to tell XCode this...
On numerous other threads, it is implied that you simply drag a library file to your project to add it (although this may only applicable to static libraries). This makes sense, except for one catch: The libraries I'm interested in are in /usr/lib, one of the directories that is invisible to the OS-X Gui. Which means I can't get to it in Finder, spotlight, or Open dialogues, so I can't drag the files in. (BTW, this has been a major pet peeve of mine - does anyone know how to give the OS-X GUI permission to see the entire file system?)
For reference, in this case I'm trying to add in the mpi and pthread libraries, and to date I've only seen posts about doing this with gcc directly, not with XCode. It looks like XCode 3.1 has an actual option pane for adding libraries, but as I'm not developing for the iPhone, I don't really want to go there yet.
Any help is greatly appreciated.
Thanks,
- Jeff
On numerous other threads, it is implied that you simply drag a library file to your project to add it (although this may only applicable to static libraries). This makes sense, except for one catch: The libraries I'm interested in are in /usr/lib, one of the directories that is invisible to the OS-X Gui. Which means I can't get to it in Finder, spotlight, or Open dialogues, so I can't drag the files in. (BTW, this has been a major pet peeve of mine - does anyone know how to give the OS-X GUI permission to see the entire file system?)
For reference, in this case I'm trying to add in the mpi and pthread libraries, and to date I've only seen posts about doing this with gcc directly, not with XCode. It looks like XCode 3.1 has an actual option pane for adding libraries, but as I'm not developing for the iPhone, I don't really want to go there yet.
Any help is greatly appreciated.
Thanks,
- Jeff