[unixODBC-support] ODBC library for QT linux

Gigin Jose gigin_jose at yahoo.co.in
Fri Jan 21 14:43:20 GMT 2011


Hi , 
I am working with QT4.6.1 on a linux platform. I need to connect to MSSQL server using QT. From the QT documnetations, I understood that QODBC driver includes the MSSQL driver also. Hence I used the binaries and libraries from www.unixodbc.org for configuring the QT. Once I try to compile the application, I am getting the compile error : /usr/bin/ld: warning: libodbc.so.1, needed by /usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so, not found (try using -rpath or -rpath-link)/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLFetchScroll'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLGetData'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLDisconnect'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLColumns'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so:
 undefined reference to `SQLSetConnectAttr'...../usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLExecDirect'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLFetch'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLMoreResults'/usr/local/Trolltech/Qt-4.6.1/plugins/sqldrivers/libqsqlodbc.so: undefined reference to `SQLSetEnvAttr'collect2: ld returned 1 exit statusmake: *** [mssql_connect] Error 1

Where can I find the definition of these symbols ? How can they be included ? 
With RegardsGIGIN

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20110121/8b2f589b/attachment.html>


More information about the unixODBC-support mailing list