[Offtopic?] Problem with "virtual" (C++)

[Offtopic?] Problem with "virtual" (C++)

Post by Florian Xa » Sat, 06 Aug 2005 16:34:18


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
 
 
 

1. CL vs C++ (problems with virtual template member functions in C++)

2. Virtual Webcam for Yahoo and Skype ?(OffTopic)


Well I've been the unoffical "computer guy" for most of the folks
around me. I cant even count the number of times I have fixed or
installed Windows XP and 98. So I know my oats.( FWIW during the 98
days, i manually used Norton disk defrag to rearrange files similar to
what layout.ini does for Win XP)

On my plain old AMD Sempron 2000 1GB, windows XP vannila takes 14
seconds to boot ( thats after disabling all the unwanted services )
Adding SP1 and all the patches brings that figure upto 18 seconds,
After I install AntiVirus and Firewall software ( Kerio and AVG are my
choice ), It gets to about 20 seconds.

The one time I tried XP SP2 it took 20 seconds to boot out of the box (
and obviously increased when stuff was installed).
Another crib I have is bootvis doesnt seem to run on SP2.

Generally I get the felling of sluggishness on SP2 systems( maybe its
just my imagination, but ....)
I stick to WINXP SP1 + AutoPatcher.

Regards
Vivek

3. On/offtopic here (was 64 bit C++ and OS defined types)

4. OffTopic: Webservices with pure C++

5. PROBLEM: debugger not stepping into a virtual method of unmanaged C++ class

6. C++ pure virtual member function problem

7. PROBLEM: debugger stepping into a virtual method of unmanaged C++ class

8. Virtual memory C++ problem

9. :offtopic: mail list problem?

10. [offtopic?] problem with UDP broadcast on Windows XP

11. Problem about different class's USB client driver.... Offtopic

12. Offtopic: again callouts :( general problem

13. offtopic - POP3 problem

14. Virtual Server Problem - Cant apply Virtual Machine Additions

15. Virtual PC-Anyone having problems running Roller Coaster Tycoon in Virtual PC