Next: 2.4 Linking a library
Up: 2 Libraries
Previous: 2.2 Linking your app
If the library you want to link against is not a GNUstep library (ie,
not managed by the GNUstep make package), for example a C library you
get from an external source, you need to tell the GNUstep make package
where the library can be found. In this case, your GNUmakefile.preamble
would look something like the following:
HelloWorldTest_TOOL_LIBS += -lNicola
HelloWorldTest_INCLUDE_DIRS += -I/opt/nicola/include/
HelloWorldTest_LIB_DIRS += -L/opt/nicola/libs/
where I am linking against the library libNicola,
which is in the directory /opt/nicola/libs/ and whose
headers are in /opt/nicola/include/.
2010-03-12