[unixODBC-dev] Dynamic vs static linkage

Igor Korot ikorot at earthlink.net
Thu Aug 21 01:06:38 BST 2008


Hi, (Nick),
Is there a difference between running unixODBC in dynamic (.so) vs static (.a) library?

I tried following code:

RETCODE ret;
SQLWCHAR driverDesc[1024];
ret = SQLDriwers( m_henv, SQL_FETCH_FIRST, driverDesc, sizeof( driverDesc ) -1, 0, 0, 0, 0 );
if( ret != SQL_SUCCESS )
//   generate error message
else
//   call the same function with SQL_FETCH_NEXT

When I call this code inside .so, it runs and executes fine, however, when I do this in .a library
it returns HY090.

I'm working with KDevelop and whatever it generated for my project.

Thank you.



More information about the unixODBC-dev mailing list