Hi,
(I'm sorry if it's a very basic C question.)
I created a static library, libmylib.a, which contains only mylib.c and mylib.h.
I'd like to know how to use the lib within other projects.
I'm using PODS.
In another project I'm using the following ugly code: #include "..\\..\\mylib\\src\\mylib.c"
I'd like to use an elegant #include "mylib.h"
but how does PODS search for libmylib.a? (How do I make PODS to know mylib.h refers to ..\..\mylib\Debug\libmylib.a?)
I found how to include mylib.h into include-paths, but I can't find how to include libmylib.a into library search paths (do they exist?). Must I edit the makefile? (I'm using managed-make projects.) Is enough to include mylib in the referenced projects?
For a 68K Managed Make project:
In the PRC-Tools 68K Linker General settings, in the "Additional Libraries", add two lines
-L../../mylib -lmylib
The first adds that folder to the library search path, the second tells it to link with "libmylib.a".
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
