This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Problems when linking X programs
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 16 Feb 2006 02:26:19 -0800
- Subject: Re: Problems when linking X programs
- References: <20060216101908.JCCS8741.mxfep04.bredband.com@mxfep04>
- Reply-to: cygwin-xfree at cygwin dot com
patrickl@bredband.net wrote:
> gcc -o Xtest -L/usr/X11R6/lib -lX11 Xtest.cpp
This is wrong. Order matters. Put -lX11 at the end (or after any
objects that refer to symbols in it), forgot all that other stuff.
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/