Re: Impossible static linking of libode
Andreas Beckermann <[email protected]> Wed, 24 Oct 2007 00:34:29 +0200
| Newsgroups | gmane.comp.lib.ode |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 23 October 2007, Ivan M wrote: > Hi, > I have been trying to compile/linking statically the libode several > days and I don't guess it. > I compile/installed ode in my Ubuntu with the --enable-static option, > and I have 2 libode - libode.a and libode.so. It seems that the "gcc > doesn't see" the libode.a and then link with libode.so dynamically. > > It is possible to link libode statically with my application? And how? > > Thanks, > Ivan. Try to add -Wl,-Bstatic to you gcc linker line before you specify the ODE library (and -Wl,-Bdynamic afterwards to "undo" this option) CU Andi