MSV C++ 6.0, problem with scolor.h

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Jahh
Posts: 1
Joined: Sun Nov 09, 2008 5:30 pm
Location: Near Quahog
Contact:

MSV C++ 6.0, problem with scolor.h

Post by Jahh »

I just installed irrlicht 1.4.2, I downloaded the files and added the source, lib, and include directories to the appropriate areas in the option>directories tab in Visual 6.0. When I try to compile any example code it comes up with 13 errors about this part of the scolors.h file:

Code: Select all

		//! Adds two colors, result is clamped to 0..255 values
		/** \param other Color to add to this color
		\return Addition of the two colors, clamped to 0..255 values */
		SColor operator+(const SColor& other) const
		{
			return SColor(core::min_(getAlpha() + other.getAlpha(), 255u),
					core::min_(getRed() + other.getRed(), 255u),
					core::min_(getGreen() + other.getGreen(), 255u),
					core::min_(getBlue() + other.getBlue(), 255u));
		}
The first error on the list is:
c:\users\****\desktop\c++\irrlicht-1.4.2\include\scolor.h(279) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
c:\users\****\desktop\c++\irrlicht-1.4.2\include\irrmath.h(80) : see declaration of 'min_'
4 others are conflicts with the irrmath.h the rest are declaration errors except the last one which is:
c:\users\jake\desktop\c++\irrlicht-1.4.2\include\irrxml.h(538) : fatal error C1506: unrecoverable block scoping error
Error executing cl.exe.

I have not edited any files, and irrlicht is the first engine I have added to this computer. Also all MSV 6.0 options are at their defaults.

Thanks[/quote]
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

MSVC 6 support is rather depreciated. The best option would be to upgrade to 2005 or 2008 (ie. version 8 or 9). Both of the express versions of 2005 and 2008 are free (money wise) from Microsoft.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yes. MSVC 6 is an old compiler and it has many problems with valid C++ code. As mentioned above, get your hands on the VC8 or 9 express compilers they are much better.

Travis
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

The Irrlicht.dsp file appears to be borked on the trunk; at least, my copy of VS6 claims that it's "modified" and refuses to open it.

I'll take a quick look at getting it working again, but the other option is to remove all VS6 project files from SVN / 1.5. It's really not something that I fancy supporting in the long term.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, probably we should also get rid if the VS6 files in the 1.4 branch, so no one will ask about it anymore :P
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Removed on the trunk in SVN 1724.

Cue mob with torches and pitchforks in 5... 4... 3...
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

Image
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
Post Reply