This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to link GCC to compile X Window programs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]