X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Fri, 05 Aug 2005 09:34:18 +0200 From: Florian Xaver User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: [Offtopic?] Problem with "virtual" (C++) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 36 Message-ID: <42f31675$0$31230$91cee783@newsreader02.highway.telekom.at> NNTP-Posting-Host: N897P003.dipool.highway.telekom.at X-Trace: 1123227253 newsreader02.highway.telekom.at 31230 212.183.122.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! I have the current DJGPP installed and want to compile a library from 1996 (sword). But i have problems with "virtual". Here are the errors: --------------------------------------------- gcc -c -O -I../../include desktop.cc -o desktop.o ../../include/graphics/zone.h: In member function 'virtual void TZone::Invalidat e(int, int, int, int)': ../../include/graphics/zone.h:163: error: no matching function for call to 'TRec t::TRect(TRect)' ../../include/mecanism/rect.h:32: note: candidates are: TRect::TRect(TRect&) ../../include/graphics/zone.h:163: error: initializing argument 1 of 'virtual void TZone::Invalidate(TRect)' ../../include/graphics/zone.h: In member function 'virtual void TZone::Invalidat e()': ../../include/graphics/zone.h:167: error: no matching function for call to 'TRec t::TRect(TRect)' ../../include/mecanism/rect.h:32: note: candidates are: TRect::TRect(TRect&) ../../include/graphics/zone.h:167: error: initializing argument 1 of 'virtual void TZone::Invalidate(TRect)' make.exe: *** [desktop.o] Error 1 --------------------------------------------- But i see no problem. What changed in C++ since 1996? (Maybe a conflict with "inline"?) Thanks, Flo