This is the mail archive of the
mailing list for the Cygwin project.
Order of -l on the command line, compared to linux..
- From: Andrew Markebo <flognat at flognat dot myip dot org>
- To: cygwin at cygwin dot com
- Date: 19 Feb 2002 10:53:18 +0100
- Subject: Order of -l on the command line, compared to linux..
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
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..
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