Not finding libraries
Not finding libraries
- Subject: Not finding libraries
- From: Howard Moon <email@hidden>
- Date: Thu, 29 Dec 2016 09:40:39 -0800
I’ve been having some troubles with including static libraries (.a files) in my project. I have one set of libraries that I need for Debug and one for Release builds.
Initially, the problem was that the paths to two of the libraries includes spaces in it. I was using “Other Linker Flags” to include the libraries, and quoting the paths so that they would remain as one item, both in the settings in the Xcode UI, and in the actual link step.
However, every time I opened the project, the paths were getting mangled, adding ‘\’ escape characters in my settings before each of the quotes and spaces in those libraries’ paths. That in turn caused the linker to fail to find the libraries. Apparently it likes to add the escape characters itself, and did not like their inclusion in the paths in the settings.
On top of that, the NEXT time I opened the project, ANOTHER escape character would be added before (after?) each ‘\’! And this would keep going, adding more and more escape characters each time I open the project.
So, instead of putting the paths in the Other Linker Flags settings themselves, I decided to put just the library names there, and put the paths in Library Search Paths (with quotes).
Now, though, even though I can see that the linker statement includes the correct -L<path> for each of those paths, it fails to find my libraries.
And to top it off, THESE settings ALSO add those stupid escape characters every time I open the project!
So, how in the heck to I add different versions of those libraries for my Debug versus Release builds, and also deal with spaces in the paths to them (and in the library name itself, in one case)?
Thanks,
Howard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden