On Mon, 24 Feb 2003 02:28:09 +1100
Sam Izzo <[EMAIL PROTECTED]> wrote:

Howdy,

> and the command-line:
> 
>    gcc test.c -o test -lHermes
> 

You probably want something like this:

   cc -o test test.c -L/usr/local/lib -lHermes
 
> Hermes is installed in /usr/local/lib (from ports).  The gcc/ld man
> pages and various sources on the web seem to indicate that
> /usr/local/lib isn't searched by default.  `ldconfig -r' shows hermes
> in its list, however.  Anyway man ld says that "for a native linker on
> an ELF system, if the file /etc/ld.so.conf exists, the list of
> directories found in that file" will be searched, so I added
> /usr/local/lib to that file (and /usr/X11R6/lib for good measure)
> however I still get the error.

IIRC, ld.so.conf only affects the runtime dynamic linker, in a similar
way LD_LIBRARY_PATH does.

Cheers,
-- 
        Miguel Mendez - [EMAIL PROTECTED]
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
        Of course it runs NetBSD!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to