MySQL Forums
Forum List  »  Connector/ODBC

Re: Can't find dependent library "libodbcinst.so.1"
Posted by: Bogdan Degtyariov
Date: July 12, 2017 12:17AM

Thank you Julius for your reply and for the details about your application.

There are a few things to be considered when creating ODBC client applications:

1. Do not link directly to the ODBC driver. The ldd output shows this dependence inside runcbl:

libmyodbc5.so => /mysql/mysql-con/mysql/lib/libmyodbc5.so

2. Your application should link libodbc.so

The role of UnixODBC driver manager is to read and manage the configuration files odbc.ini/odbcinst.ini. Then depending on the driver you want UnixODBC will load the proper ODBC driver shared library without need to link it to your program executable.

Please let me know if you managed to link runcbl against libodbc.so

--
Best regards,
Bogdan Degtyariov

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.