How to link GCC to compile X Window programs
Alexander Gottwald
alexander.gottwald@s1999.tu-chemnitz.de
Wed Feb 26 20:57:00 GMT 2003
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
More information about the Cygwin-xfree
mailing list