This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: How to link GCC to compile X Window programs
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 26 Feb 2003 21:57:04 +0100 (MET)
- Subject: Re: How to link GCC to compile X Window programs
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 26 Feb 2003, Kevin Dang wrote:
> Hi all,
>
> I have been trying to get GCC to compile my X Window programs, but it could
> not find the library. I try to create a makefile and use "gccmakedep" to
> link up the X lib, and X include file, so that I can compile and run X
> program. I have been unsuccessful so far, can somebody please help me? If
> possible, can somebody send me their make file or show me how to link up the
> library to be able to compile and run X window programs. Any help will be
> appreciated. Than You
add -I/usr/X11R6/include to the compile commandline and -L/usr/X11R6/lib -lX11
to the link commandline.
bye
ago