[ILUG] gcc libs question

From: Conor Daly (conor.daly at domain met.ie)
Date: Mon 18 Jun 2001 - 12:59:49 IST


Trying to compile a program with some proprietry libs and having a bit of
trouble.

I was told I needed to use a "-ldl" switch to use "libdl.a" which fixed
the errors below. My problem now is, how do I divine from the output below
that I was supposed to use such a switch? Or, how will I divine from some
other arcane output to something else which lib I'm supposed to use *this
time*?

TIA,

Conor

Transcript:

[cdaly at domain bofh src]$ gcc readboys.dup.c -L /usr/local/ingres/ingres/lib -lingres
/usr/local/ingres/ingres/lib/libingres.a(louniq.o): In function `LOuniq':
louniq.o(.text+0x144): the use of `mktemp' is dangerous, better use
`mkstemp'
/usr/local/ingres/ingres/lib/libingres.a(ci.o): In function `CIcapability':
ci.o(.text+0x1b5): undefined reference to `dlopen'
ci.o(.text+0x1d0): undefined reference to `dlopen'
ci.o(.text+0x1f4): undefined reference to `dlsym'
ci.o(.text+0x20c): undefined reference to `dlsym'
/usr/local/ingres/ingres/lib/libingres.a(dlos.o): In function `iiDLsymfunc':
dlos.o(.text+0x9b): undefined reference to `dlsym'
/usr/local/ingres/ingres/lib/libingres.a(dlos.o): In function `IIDLosprepare':
dlos.o(.text+0x11d): undefined reference to `dlopen'
dlos.o(.text+0x13e): undefined reference to `dlerror'
dlos.o(.text+0x174): undefined reference to `dlerror'
dlos.o(.text+0x1b9): undefined reference to `dlsym'
dlos.o(.text+0x1dd): undefined reference to `dlclose'
dlos.o(.text+0x219): undefined reference to `dlsym'
/usr/local/ingres/ingres/lib/libingres.a(dlos.o): In function `IIDLosunload':
dlos.o(.text+0x370): undefined reference to `dlclose'
collect2: ld returned 1 exit status

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064275
------------------------------------
 11:55am  up 24 days, 22:57,  9 users,  load average: 2.46, 2.32, 2.18


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:42 GMT