www.delorie.com/archives/browse.cgi | search |
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 |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Wed, 15 Mar 2000 10:01:54 -0500 |
To: | Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: Linking problem: IsWindowVisible |
Message-ID: | <20000315100154.D26330@cygnus.com> |
Reply-To: | cygwin AT sourceware DOT cygnus DOT com |
Mail-Followup-To: | cgf AT cygnus DOT com, |
Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com> | |
References: | <38CFA385 DOT B0594DCE AT sigma6 DOT com> <200003151457 DOT PAA85319 AT andromeda DOT risc DOT uni-linz DOT ac DOT at> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.1.8i |
In-Reply-To: | <200003151457.PAA85319@andromeda.risc.uni-linz.ac.at>; from Axel.Riese@risc.uni-linz.ac.at on Wed, Mar 15, 2000 at 03:57:56PM +0100 |
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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |