Re: Linking Static Lib(UnixODBC) In Another Static Lib(libodbc++-mt.a)
Prabu RM <[email protected]> Tue, 28 May 2013 15:04:29 +0530
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <CADn94sDzHZbzKESFNLYdADJdBQe6hQ2cwY0WA=JWZq+wyhC3yA@mail.gmail.com> |
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 <[email protected]> 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 > _______________________________________________ unixODBC-dev mailing list [email protected] http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev