compile signal code
Chuck Swiger
cswiger at mac.com
Tue May 11 14:12:03 PDT 2004
Brian Henning wrote:
[ ... ]
> I am having trouble compiling some signal related code in freebsd. What is the
> library I should link to get this to compile?
"man signal" says that the standard C library contains the signal handling
functionality. FreeBSD also supports the POSIX sigaction family.
> /usr/local/src > gcc signal_handler.c
> /tmp/ccfXkcCV.o: In function `main':
> /tmp/ccfXkcCV.o(.text+0x11): undefined reference to `sigset'
> /tmp/ccfXkcCV.o(.text+0x23): undefined reference to `sigset'
> /tmp/ccfXkcCV.o: In function `sigusr':
> /tmp/ccfXkcCV.o(.text+0x9d): undefined reference to `err_dump'
Presumably your code implements these? They aren't standard...
--
-Chuck
More information about the freebsd-questions
mailing list