This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Linking problem: IsWindowVisible
- To: jsturm at sigma6 dot com (Jeff Sturm)
- Subject: Re: Linking problem: IsWindowVisible
- From: Axel Riese <Axel dot Riese at risc dot uni-linz dot ac dot at>
- Date: Wed, 15 Mar 2000 15:57:56 +0100 (MET)
- Cc: OJOHANS at statoil dot com (Øystein O Johansen), cygwin at sourceware dot cygnus dot com (Cygwin Mailing List)
> > Hm, in this case you should have problems at compile time, not at
> > link time, shouldn't you ?
>
> Not necessarily. In the absence of a declaration, C will guess "int
> IsWindowVisible()", which in this case is wrong.
>
> BTW you can catch such problems by compiling with -Wall:
Yes, clear. But I have my doubts that one can get an undefined reference
due to a missing declaration. Anyway, adding -mwindows or -luser32
should solve the problem.
- Axel
=======================================================================
Axel Riese
Research Institute for Symbolic Computation
J. Kepler University Linz Tel: +43 (0)732 2468 9939
Altenbergerstrasse 69 Fax: +43 (0)732 2468 9930
A-4040 Linz e-Mail: Axel.Riese@risc.uni-linz.ac.at
Austria http://www.risc.uni-linz.ac.at/people/ariese/home/
=======================================================================
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com