Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Date: 19 Feb 2002 10:53:18 +0100 Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/