This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: ABC questions


On Mon, Sep 08, 2003 at 07:30:25PM +0900, Shigeyoshi Tsutsui wrote:
> Hi,
> 
> Sorry my ABC question on sygwin.
> When I try to compile X window program
> by
> gcc -o target test.c -lX11
> ld failed. The message is
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
> cannot find -lX11
> 
> Could someone let me know the reason?

libX11.a is not in the lib search path.  Use the -L option or the
LD_LIBRARY_PATH environment variable.  See `info gcc' for more info.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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