writing a FreeBSD C library

Florian Loeber f.loeber at googlemail.com
Mon Oct 26 21:04:48 UTC 2009


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


More information about the freebsd-hackers mailing list