Re: Dynamic vs static linkage

Igor Korot <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <14297063.1219289026584.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net>
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 <[email protected]>
>Sent: Aug 20, 2008 8:06 PM
>To: [email protected]
>Cc: [email protected]
>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.

_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.