delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/19/05:07:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Order of -l on the command line, compared to linux..
From: Andrew Markebo <flognat AT flognat DOT myip DOT org>
Date: 19 Feb 2002 10:53:18 +0100
Message-ID: <m3664tlrw1.fsf@localhost.localdomain>
Lines: 25
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0

Hello!

What is the diff between linker on linux and cygwin linker??

Basically, the problem is that 
        gcc -lX11 foo.o

works on linux, but not cygwin (missing symbols), on cygwin I have to
do it the order: 
        gcc foo.o -lX11

Is it a new feature in the gcc 2.96-version on my linux-machine, or
something else??

Just being curious, myself I preferr to throw the -l last, but I have
seen more and more people having a problem wanting to throw -lX11 at
the beginning, and wonder where they get the order from..

        /Andy

p.s. Yeah I know, X11 doesn't really belong here, but I assumed that I
have the same problem with any lib I try to link with.. 

-- 
 The eye of the beholder rests on the beauty!

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019