creating a dll using a static library

Ian Lance Taylor iant@google.com
Fri Mar 18 14:23:00 GMT 2011


Luc MOULINIER <moumou@igbmc.fr> writes:

> I try to create a dynamic library, say toto.dll, using a static library, say libRmath.a. When loading the toto.dll library, an error occurs asking me for the libRmath.a library.
> The compilation is done as :
> gcc -shared toto.dll f1.o f2.o f3.o -L/c/tcl/lib -ltclstub86 -L. libRmath.a
> on Windows, MinGW and gcc 4.5.2
>
> Can soneone tell me what is wrong in my compilation ?

I don't know what is wrong, but I can tell you that you are much more
likely to get help if you tell us the exact error message.

Ian



More information about the Gcc-help mailing list