[unixODBC-support] Problem with compiling simple ODBC program

Lebogang Masenya l.masenya at ee.wits.ac.za
Wed Jul 28 18:19:51 BST 2004

i have just installed unixODBC and took the simple example on the
www.unixodbc.org site with no changes for testing. but when i compile the
programme with gcc, it gives me compile time errors saying  "undefined
reference to <ODBC Methods>" where

<ODBC Method> = SQLAllocHandle, SQLSetEnvHandle, SQLFreeHandle etc,etc

my first guess was that it does not find the shared object libraries that
are installed in /usr/local/lib by default. so i eddited the ld.so.conf file
adding the /usr/local/lib and then running ldconfig. But it still gives me
the same errors.

What could be the problem with this, i have been strugling with this for a
while please help.

i am running
gcc version 3.2.2
redhat linux 9.0

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 7/27/2004

More information about the unixODBC-support mailing list