This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: How can i link to X11 with gcc?
- From: "Suhaib Siddiqi" <ssiddiqi at ssiddiqi dot com>
- To: <cygwin-xfree at cygwin dot com>
- Date: Mon, 18 Feb 2002 16:36:56 -0500
- Subject: RE: How can i link to X11 with gcc?
- Reply-to: <ssiddiqi at ssiddiqi dot com>
link to -L/usr/X11R6/lib not /usr/lib
> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com
> [mailto:cygwin-xfree-owner@cygwin.com] On Behalf Of Oleg Giwodiorow
> Sent: Monday, February 18, 2002 4:44 PM
> To: cygwin-xfree@cygwin.com
> Subject: How can i link to X11 with gcc?
>
>
> Hi,
> I suppose this question is stupid, but i can not figure it
> out myself...
>
> How can i link to X11 libraries with gcc ?
>
> if i try to compile with :
> "gcc -L/usr/lib -lX11 ..." i recieve the error message :
> "cannot find -lX11"
>
> If i change the makefile, so the path is setted, where the
> libX11.a is : "gcc -L/usr/X11R6/lib -lX11 ..." i recieve lots
> of errors like : "undefined refernce to 'XDrawPoint'" Most of
> the listed Functions are includet with Xlib.h (i suppose all,
> but they are to many to verify each of them).
>
> Excuseme for my weak english and
> thank You;
> Oleg
>