From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13645 invoked by alias); 10 May 2007 18:18:51 -0000 Received: (qmail 13634 invoked by uid 22791); 10 May 2007 18:18:50 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 May 2007 18:18:48 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HmDDy-0002du-7r for gcc-help@gcc.gnu.org; Thu, 10 May 2007 11:18:46 -0700 Message-ID: <10418803.post@talk.nabble.com> Date: Thu, 10 May 2007 18:18:00 -0000 From: gccNewbie To: gcc-help@gcc.gnu.org Subject: Re: Simple linking problem In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: bguild@shaw.ca References: <10410954.post@talk.nabble.com> <17986.64743.402588.180994@zebedee.pink> <10411665.post@talk.nabble.com> 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-05/txt/msg00101.txt.bz2 Matthew Woehlke-3 wrote: > > Linux lets you get away with this wrong link order due to lazy symbol > resolution, whereas Windows does not. What you have done is asked to > first link to libmylib. Since no objects (actually, you don't *have* any > objects yet!) require any symbols from libmylib, no symbols are > imported. > That solved my problem very well! I should have tried that, but it's even better to have this explanation of why it works. It's odd that the manual was so deliberately misleading on this! While I was trying to solve this myself, I read: "You can mix options and other arguments. For the most part, the order you use doesn't matter. Order does matter when you use several options of the same kind; for example, if you specify -L more than once, the directories are searched in the order specified." -- View this message in context: http://www.nabble.com/Simple-linking-problem-tf3720892.html#a10418803 Sent from the gcc - Help mailing list archive at Nabble.com.