From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5195 invoked by alias); 25 Oct 2007 11:25:57 -0000 Received: (qmail 5184 invoked by uid 22791); 25 Oct 2007 11:25:56 -0000 X-Spam-Check-By: sourceware.org Received: from chip2og51.obsmtp.com (HELO chip2og51.obsmtp.com) (64.18.13.39) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 Oct 2007 11:25:54 +0000 Received: from source ([192.150.11.134]) by chip2ob51.postini.com ([64.18.5.12]) with SMTP; Thu, 25 Oct 2007 04:25:42 PDT Received: from inner-relay-3.eur.adobe.com (inner-relay-3.adobe.com [192.150.20.198] (may be forged)) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id l9PBNiIQ022905; Thu, 25 Oct 2007 04:23:44 -0700 (PDT) Received: from fe2.corp.adobe.com (fe2.corp.adobe.com [10.8.192.72]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id l9PBPdFV005156; Thu, 25 Oct 2007 04:25:40 -0700 (PDT) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe2.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 Oct 2007 04:25:39 -0700 Received: from 10.32.16.88 ([10.32.16.88]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Thu, 25 Oct 2007 11:25:39 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Thu, 25 Oct 2007 12:44:00 -0000 Subject: Re: linking libraries without name prefix/suffix From: John Love-Jensen To: k wayne , MSX to GCC Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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: 2007-10/txt/msg00316.txt.bz2 Hi k wayne, > i need to link (through invokation of g++, if possible) a > library that does not have the "libxxx.a" scheme... Let's assume the "what should be a library but isn't because it doesn't follow the naming requirements for being a library (lib prefix and .a suffix)" is called ImReallyALibraryDammit. Do this in that directory, say /secret/library/location, which contains ImReallyALibraryDammit: ln -s ImReallyALibraryDammit libImReallyALibraryDammit.a Then the linker will be able to locate the malnamed library. So this will now work: g++ foo.cpp -L/secret/library/location -lImReallyALibraryDammit HTH, --Eljay