Linking problem: IsWindowVisible

Axel Riese
Wed Mar 15 06:58:00 GMT 2000

> > 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:

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list