[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Compiling/Executing problems in C
- From: Tony Finch <dot@...>
- Date: Mon, 9 Jul 2007 22:48:02 +0100
On Mon, 9 Jul 2007, Patrick Donnelly wrote:
> How do you guys know these link options (is there a list somewhere?)?
The linker complained about undefined symbols acos and dlsym. If you type
`man acos` it tells you to link with -lm. The dlsym man page is less
useful but does mention -ldl in the examples section.
(I'm assuming you are looking at the Linux man pages, which are frequently
shoddy. On BSD the man pages all have a LIBRARY section which explains how
f.a.n.finch <email@example.com> http://dotat.at/
FISHER: NORTHWEST BACKING SOUTHWEST 4 OR 5, OCCASIONALLY 6. MODERATE OR ROUGH.