From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Faylor To: Cygwin Mailing List Subject: Re: Linking problem: IsWindowVisible Date: Wed, 15 Mar 2000 07:02:00 -0000 Message-id: <20000315100154.D26330@cygnus.com> References: <38CFA385.B0594DCE@sigma6.com> <200003151457.PAA85319@andromeda.risc.uni-linz.ac.at> X-SW-Source: 2000-03/msg00360.html On Wed, Mar 15, 2000 at 03:57:56PM +0100, Axel Riese wrote: >> > 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. Your doubts are wrong. If you haven't declared the function correctly this is exactly what you'll get. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com