creating a dll using a static library

Luc MOULINIER moumou@igbmc.fr
Fri Mar 18 12:25:00 GMT 2011


Hello !

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 ?

Many thanks in advance !
Luc



----------------------------------------------------------------
Dr. Luc Moulinier,
Laboratoire de Biologie et Génomique Intégratives
IGBMC
1, rue Laurent Fries
67 404 ILLKIRCH Cedex
Phone : +33 (0)3 88 65 32 79
----------------------------------------------------------------



More information about the Gcc-help mailing list