From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20942 invoked by alias); 18 Mar 2011 12:25:45 -0000 Received: (qmail 20929 invoked by uid 22791); 18 Mar 2011 12:25:44 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Mar 2011 12:25:38 +0000 Received: from igbmc.fr (serv-edge2k10.u-strasbg.fr [130.79.77.248]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id p2ICPaQu025191 for ; Fri, 18 Mar 2011 13:25:36 +0100 (CET) (envelope-from moumou@igbmc.fr) Received: from serv-hub1.igbmc.u-strasbg.fr (130.79.77.249) by igbmc.u-strasbg.fr (130.79.77.184) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 18 Mar 2011 13:25:36 +0100 Received: from SERV-MAILBOX1.igbmc.u-strasbg.fr ([fe80::1070:4d9:e1:dd1]) by serv-hub1.igbmc.u-strasbg.fr ([fe80::8ec:6a90:8ef3:6cc3%11]) with mapi id 14.01.0270.001; Fri, 18 Mar 2011 13:25:34 +0100 From: Luc MOULINIER To: "gcc-help@gcc.gnu.org" Subject: creating a dll using a static library Date: Fri, 18 Mar 2011 12:25:00 -0000 Message-ID: <9D42FE4FC72AD04EA95803433003F67D09849B@SERV-MAILBOX1.igbmc.u-strasbg.fr> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00229.txt.bz2 Hello ! I try to create a dynamic library, say toto.dll, using a static library, sa= y 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=E9nomique Int=E9gratives IGBMC 1, rue Laurent Fries 67 404 ILLKIRCH Cedex Phone : +33 (0)3 88 65 32 79 ----------------------------------------------------------------