delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/15/09:49:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <38CFA385.B0594DCE@sigma6.com>
Date: Wed, 15 Mar 2000 09:51:49 -0500
From: Jeff Sturm <jsturm AT sigma6 DOT com>
Organization: AppNet
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Axel Riese <Axel DOT Riese AT risc DOT uni-linz DOT ac DOT at>
CC: =?iso-8859-1?Q?=D8ystein?= O Johansen <OJOHANS AT statoil DOT com>,
Cygwin
Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Linking problem: IsWindowVisible
References: <200003151438 DOT PAA85199 AT andromeda DOT risc DOT uni-linz DOT ac DOT at>

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 AT sigma6 DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019