I'm currently trying to link the C static library I created with a new Xcode project. To link it, I followed these instructions:
1) Go to Build Phases
2) Expand Link the binaries to the library
3) A "different" library is added, and then the .a file is specified.
Unfortunately, the project will not compile and produces the following error:
ld: library not found for -ltxht
I'm not sure what to do with this. It seems that the library looks normal in the project as a project file, and I can not find any signs that something is wrong with this.
I tried to set its location to Use the absolute path in the file inspector, but this did not change anything.
I also saw that in some of these online posts that somehow provide the full path to the static library, they can help solve the problem:
In response to your comment on Eduard Wirch: you can also manage static linking only for this library if you replace -lhdf5 with -l / full / path / to / libhdf5.a
From this SO Post .
However, I'm not sure how to do this? I went to Build Settings and did not see anything except the parameter pages, but in the Headers or Linking section there are not so many that seems to allow me to do what I want.
- , C? :
: /lib/libtxht/libtxht.a
Xcode: /lib/libtxvm/myProject.xcodeproj