From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4487 invoked by alias); 18 Mar 2011 14:23:30 -0000 Received: (qmail 4479 invoked by uid 22791); 18 Mar 2011 14:23:29 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Mar 2011 14:23:25 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id p2IENM4e018506 for ; Fri, 18 Mar 2011 07:23:22 -0700 Received: from iwn3 (iwn3.prod.google.com [10.241.68.67]) by kpbe12.cbf.corp.google.com with ESMTP id p2IENJ4B023391 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Fri, 18 Mar 2011 07:23:20 -0700 Received: by iwn3 with SMTP id 3so4900992iwn.15 for ; Fri, 18 Mar 2011 07:23:20 -0700 (PDT) Received: by 10.42.163.68 with SMTP id b4mr1727448icy.120.1300458200576; Fri, 18 Mar 2011 07:23:20 -0700 (PDT) Received: from coign.google.com ([67.218.107.6]) by mx.google.com with ESMTPS id vx7sm1918853icb.14.2011.03.18.07.23.18 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 07:23:20 -0700 (PDT) From: Ian Lance Taylor To: Luc MOULINIER Cc: "gcc-help\@gcc.gnu.org" Subject: Re: creating a dll using a static library References: <9D42FE4FC72AD04EA95803433003F67D09849B@SERV-MAILBOX1.igbmc.u-strasbg.fr> Date: Fri, 18 Mar 2011 14:23:00 -0000 In-Reply-To: <9D42FE4FC72AD04EA95803433003F67D09849B@SERV-MAILBOX1.igbmc.u-strasbg.fr> (Luc MOULINIER's message of "Fri, 18 Mar 2011 12:25:34 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes 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/msg00233.txt.bz2 Luc MOULINIER 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