i've written a C library (call it 'foo) and made a foo.a file using 'ar'.
Now what do i do?

i tried copying the file into /usr/local/lib and compiling a test program
using 'gcc -Wall -lfoo test.c -o test' and it complained about undefined
references to all my library routines.

i also tried making a dynamic library (foo.so.1), copied it into
/usr/local/lib, ran ldconfig and tried compiling it like above. This time
ld complained it couldn't find the file -lfoo.

i have a foo.h file which lives in /usr/local/include and contains
function prototypes and #defines for all the functions used in my library.

Reply via email to