bug-libtool
[Top][All Lists]
Advanced

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

Re: Error in ltdl


From: Bob Friesenhahn
Subject: Re: Error in ltdl
Date: Fri, 14 Aug 2009 14:47:57 -0500 (CDT)

On Fri, 14 Aug 2009, Boobal wrote:

I have already linked with ldl only....
I got the linking error while linking with the libodbc.a
I got the error such as
/usr/local/lib/libodbc.a(SQLConnect.o): In function `odbc_dlclose'

I installed unixODBC as follows
tar -xzvf unixODBC-2.2.15pre.tar.gz
cd unixODBC-2.2.15pre
./configure --enable-static=yes --enable-threads=yes --enable-gui=no
make
make install (as root user)

This installs /usr/local/lib/libodbc.a
but I got the error while linking with this libodbc.a

In my Makefile 'LDFLAGS' options are as follows:

LDFLAGS = -ldl -lrt

You need to add -lltdl to the front of that library list. However, libraries should be specified via LIBS rather than LDFLAGS.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]