From: Martin J. Evans Date: April 14 2011 4:53pm Subject: Re: Linking on LINUX with ODBC drivers - missing libodbcinst.so.1 List-Archive: http://lists.mysql.com/myodbc/11678 Message-Id: <4DA7267F.60207@easysoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable On 14/04/11 17:35, mike.rawlins@stripped wrote: > Hi, > > I have an ODBC application on LINUX that needs to access databases on o= ther machines using ODBC. I=92ve downloaded the myodbc driver tarball for= LINUX. I have a demo program that works with other drivers, but when I t= ry to link to just the MYSql ODBC drivers I get the following: > > make > > g++ -g -m32 -o demoodbc -I../include demoodbc.c -L../lib -lmyodbc5 -lc > > /usr/bin/ld: warning: libodbcinst.so.1, needed by ../lib/libmyodbc5.so,= not found (try using -rpath or -rpath-link) > > ../lib/libmyodbc5.so: undefined reference to `SQLSetConfigMode' > > ../lib/libmyodbc5.so: undefined reference to `SQLValidDSN' > > ../lib/libmyodbc5.so: undefined reference to `SQLInstallDriverEx' > > ../lib/libmyodbc5.so: undefined reference to `SQLGetPrivateProfileStrin= g' > > ../lib/libmyodbc5.so: undefined reference to `SQLRemoveDSNFromIni' > > ../lib/libmyodbc5.so: undefined reference to `SQLPostInstallerError' > > ../lib/libmyodbc5.so: undefined reference to `SQLGetConfigMode' > > ../lib/libmyodbc5.so: undefined reference to `SQLWritePrivateProfileStr= ing' > > ../lib/libmyodbc5.so: undefined reference to `SQLRemoveDriver' > > ../lib/libmyodbc5.so: undefined reference to `SQLWriteDSNToIni' > > collect2: ld returned 1 exit status > > make: *** [demoodbc] Error 1 > > This shared library file was not in the distribution. Any idea where I = can get it? > > Thanks, > > Mike > > Mike Rawlins > Sr. Software Engineer > Chair, ASC X12 Technical Assessment Subcommittee > > 18111 Preston Road, Suite 600 > Dallas, TX 75252 > +1 972.643.3101 direct// > > mike.rawlins@stripped > > www.gxs.com > > GXS Blog > > GXS_2color_pos > You need to install the unixODBC driver manager. Depending on your linux = distribution you might be able to install it as a package in which case l= ook for unixodbc-bin or something like that. It will supply libodbc.so an= d libodbcinst.so. Martin --=20 Martin J. Evans Easysoft Limited http://www.easysoft.com