Hi,

you have to link your executable to your library.
The command-line option is -l.

% gcc -o testfile -lmylib source.c

Without it, your program doesn't know that this library exists
(somewhere, /usr/lib, ...)

Regards,
Florian
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to