[unixODBC-dev] Linking Static Lib(UnixODBC) In Another Static Lib(libodbc++-mt.a)

Prabu RM prabu at vembu.com
Tue May 28 10:34:29 BST 2013


Hi Nick,

Thanks for your quick response.

We try like what you say. Also we sign in the list and follow up you.

Thanks & Regards,
Prabu RM.


On Tue, May 28, 2013 at 1:52 PM, Nick Gorham <nick at lurcher.org> wrote:

>  On 27/05/13 10:59, Prabu RM wrote:
>
> Hi Support,
>
>  In linux linking a static lib to another static is not so easy and we
> believe that it is not supported. In order to achieve that we need to
> extract both the .a separately to their objects and need to make them
> single.
>
>  But in UnixODBC/LibODBC we used to keep our application which binds both
> UnixODBC & LibODBC in static.
>
>  Eg: /usr/local/lib/libodbc++-mt.a, /usr/local/lib/libodbc.a
>
>  The connectivity b/w our application and MySQL server looks like below.
>
>  *Application Binary(c++) -> LibODBC -> UnixODBC -> MySQL Driver -> MySQL
> Server*
> *
> *
> If so how do you link *UnixODBC Static Lib(*libodbc.a*) *in* LibODBC
> Static Lib(*libodbc++-mt.a*) creation?*
>
>
> As you say at the start of the email, you can't. All you could do is
> create a combined lib containing the contents of libodbc.a and libodbc++.a.
>
> BTW, remember that statically linking to your application does not remove
> the GPL requirements of using the lib in your application.
>
> Also BTW, you should join the list before posting.
>
> --
> Nick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20130528/2ef15744/attachment.html>


More information about the unixODBC-dev mailing list