lua-users home
lua-l archive

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


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
to link.)

Tony.
-- 
f.a.n.finch  <dot@dotat.at>  http://dotat.at/
FISHER: NORTHWEST BACKING SOUTHWEST 4 OR 5, OCCASIONALLY 6. MODERATE OR ROUGH.
SHOWERS. GOOD.