[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling start-stop-daemon

"Kevin Musick" <kmusick2@home.com> writes:

> calling gcc directly.  I'm using the line:

Seems you omitted it.

> I get linker errors that ihash and proc_stat_* functions are not found.
> I've attempted to:
> gcc -Wall -l libihash.so start-stop-daemon.c

If you use -l, do not include the "lib" and ".so".

proc_stat_* functions are in libps.so:
$ gcc -Wall -lps start-stop-daemon.c

libps.so.0.2 declares a dependency on libihash.so.0.2
(check with "ldd" or "objdump --private-headers"),
so that should be automatically linked in.

Reply to: