[unixODBC-dev] Re: Dynamic vs static linkage

Igor Korot ikorot at earthlink.net
Thu Aug 21 04:23:46 BST 2008


Nick,
I just looked at the source. The call failing at the line 191 according to the log:

    if ( environment -> requested_version == 0 )

What am I missing?

Thank you.

-----Original Message-----
>From: Igor Korot <ikorot at earthlink.net>
>Sent: Aug 20, 2008 8:06 PM
>To: unixodbc-dev at easysoft.com
>Cc: nick at lurcher.org
>Subject: Dynamic vs static linkage
>
>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