From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18784 invoked by alias); 15 Oct 2004 09:31:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18773 invoked from network); 15 Oct 2004 09:31:19 -0000 Received: from unknown (HELO mail.iinet.net.au) (203.59.3.34) by sourceware.org with SMTP; 15 Oct 2004 09:31:19 -0000 Received: (qmail 20061 invoked from network); 15 Oct 2004 09:31:18 -0000 Received: from unknown (HELO iinet.net.au) (203.217.35.149) by mail.iinet.net.au with SMTP; 15 Oct 2004 09:31:17 -0000 Message-ID: <416F97A4.9060904@iinet.net.au> Date: Fri, 15 Oct 2004 09:31:00 -0000 From: Sisyphus User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 MIME-Version: 1.0 To: gcc Subject: Convert dynamic lib to static lib Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00102.txt.bz2 Hi, I have a dynamic library that someone else has compiled - it's in fact the pgplot library built for Win32. It contains: cpgplot.h libcpgplot.a libcpgplot.dll libpgplot.a libpgplot.dll When I build my apps I include the header file and link to the 2 '.a' files, and they build and run fine. But this is a dynamic build - and the 2 dll's need to be locatable at runtime. For a particular project I would like to have a static build of that pgplot library - one that doesn't involve the loading of any dll's. Is it possible to convert that dynamic build that I have into a static build - and if so, how ? I'm hoping to avoid having to compile pgplot from source as it looks like a bugger of a job on Win32. Cheers, Rob