From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6064 invoked by alias); 29 Jun 2005 20:00:13 -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 5978 invoked by uid 22791); 29 Jun 2005 20:00:02 -0000 Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.206) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 20:00:02 +0000 Received: by zproxy.gmail.com with SMTP id p8so528391nzb for ; Wed, 29 Jun 2005 13:00:01 -0700 (PDT) Received: by 10.36.133.13 with SMTP id g13mr595486nzd; Wed, 29 Jun 2005 13:00:00 -0700 (PDT) Received: by 10.36.55.17 with HTTP; Wed, 29 Jun 2005 13:00:00 -0700 (PDT) Message-ID: <4a618d0805062913006d93422a@mail.gmail.com> Date: Wed, 29 Jun 2005 20:00:00 -0000 From: Arturas Moskvinas Reply-To: Arturas Moskvinas To: Angel Tsankov Subject: Re: Passing names of libraries to linker. Cc: gcc-help mailing list In-Reply-To: <001101c57cd9$92459bb0$cf34000a@sven> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001101c57cd9$92459bb0$cf34000a@sven> X-SW-Source: 2005-06/txt/msg00207.txt.bz2 > MS C++ compiler supports a >=20 > #pragma comment(lib, "library.lib") >=20 > directve, that causes the compiler to pass the quoted file name to the > linker. The linker is expected to add this file name to the list of > libraries to be searched for external symbols. Is there a similar mechani= sm > in gcc/g++? I do not think this behavior (#pragma comment(lib, "library.lib")) is written in C or C++ standart (gcc is refering to these standarts not to microsoft or any other...). I think your answer about linking will be answered on this page: http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Link-Options.html Arturas Moskvinas