Q: How can I tell InterfaceBuilder to link against more libraries?
A: In Release 2, this is easy. Select Other libs in the Project inspector, and click Add... A panel opens allowing you to add a library. InterfaceBuilder lists added libraries in alphabetical order in the Project Inspector's browser. If necessary, you can change their order by control-dragging the library names. If the Library doesn't reside in /usr/lib you also have to add a Makefile.preamble file to the project with the variable OTHER_LIBS set to the library's directory. For example
OTHER_LIBS = -L/OtherLibsDir
In Release 1, you need to have a file called Makefile.preamble in addition to the Makefile. In this file, assign a value to the variable OTHER_LIBS. For example:
OTHER_LIBS = -ltext
The value of LIBS will be the library listed above plus NeXT_s and sys_s, which are linked in by the Makefile.
In Release 3, first open your project folder (PB.project) via ProjectBuilder, then select the Libraries folder.
Select Add from the Files menu. A panel opens allowing you to add a Library. Note that you also need to add a Makefile.preamble with the OTHER_LIBS option to your project as described for Release 2, if your Library doesn't reside in /usr/lib.
QA269
Valid for 1.0, 2.0, 3.0