This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: Linking problem: IsWindowVisible


Axel Riese wrote:
> > > Yes, I worked that out by self. But I still get undefined
> > > reference to 'IsWindowVisible' ?
> >
> > You may be missing a declaration for IsWindowVisible.  Does the source
> > file have #include <windows.h> anywhere?
>
> 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:

jcs.c:4: warning: implicit declaration of function `IsWindowVisible'

-- 
Jeff Sturm
jsturm@sigma6.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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