Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <200003151457.PAA85319@andromeda.risc.uni-linz.ac.at> Subject: Re: Linking problem: IsWindowVisible To: jsturm AT sigma6 DOT com (Jeff Sturm) Date: Wed, 15 Mar 2000 15:57:56 +0100 (MET) Cc: OJOHANS AT statoil DOT com (=?iso-8859-1?Q?=D8ystein?= O Johansen), cygwin AT sourceware DOT cygnus DOT com (Cygwin Mailing List) In-Reply-To: <38CFA385.B0594DCE@sigma6.com> from "Jeff Sturm" at Mar 15, 2000 09:51:49 AM From: Axel Riese X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > > 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: Axel DOT Riese AT risc DOT uni-linz DOT ac DOT at Austria http://www.risc.uni-linz.ac.at/people/ariese/home/ ======================================================================= -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com