delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/08/02:44:26

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
Delivered-To: alias-outgoing-cygwin AT sourceware DOT cygnus DOT com@outgoing
Message-Id: <4.2.2.20000207195446.00a3c7d0@pop.mail.yahoo.com>
X-Sender: haleykd AT pop DOT mail DOT yahoo DOT com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2
Date: Mon, 07 Feb 2000 20:06:46 -0700
To: cygwin AT sourceware DOT cygnus DOT com
From: "K. Haley" <khaley AT bigfoot DOT com>
Subject: Overloaded constructor resolution
Mime-Version: 1.0

I'm trying to compile some library code with GCC 2.95.2 but I keep getting 
an ambiguous constructor call.  Here is the error:

gauge.cpp: In method `void OWL::TGauge::SetBkgndColor(const OWL::TColor &)':
gauge.cpp:217: call of overloaded `TColor(unsigned int)' is ambiguous
../../Include/owl/color.h:458: candidates are: OWL::TColor::TColor(const 
OWL::TColor &) <near match>
../../Include/owl/color.h:468:                 OWL::TColor::TColor(long 
unsigned int)
../../Include/owl/color.h:478:                 OWL::TColor::TColor(long int)
../../Include/owl/color.h:509:                 OWL::TColor::TColor(short int)
make: *** [../../Obj/owlwfg/gauge.obj] Error 1

I've fixed the offending code with a cast, but I'm wondering why other 
compilers don't complain.  This code has been compiled with Borland and MS 
compilers.

---
Kenneth Haley <mailto:khaley AT bigfoot DOT com>
Yahoo! Messenger -- http://profiles.yahoo.com/haleykd
Website  http://www.bigfoot.com/~khaley
PGP -- http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=khaley AT bigfoot 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