[fixed] Infom Visual Studio 6.0 users about old compiler

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

[fixed] Infom Visual Studio 6.0 users about old compiler

Post by Sylence »

Some of the VS 6.0 users still don't know that their compiler is not compatible with Irrlicht and keep posting in the forums why they can't compile.

Adding a warning/error when compiling with Vs 6.0 or older should help there.

Code: Select all

Index: include/IrrCompileConfig.h
===================================================================
--- include/IrrCompileConfig.h	(Revision 2278)
+++ include/IrrCompileConfig.h	(Arbeitskopie)
@@ -45,6 +45,13 @@
 #endif
 #endif
 
+// Visual Studio 6.0 is no longer supported
+#ifdef _MSC_VER
+#if ( _MSC_VER < 1300 && !defined(__GNUC__))
+#error "Visual Studio 6.0 is not supported."
+#endif
+#endif
+
 // XBox only suppots the native Window stuff
 #if defined(_XBOX)
 	#undef _IRR_WINDOWS_

Tracker-URL:
https://sourceforge.net/tracker/index.p ... tid=540678
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you intend to display an error for earlier versions of the Microsoft compiler, the following check should be sufficient...

Code: Select all

#if defined(_MSC_VER) && (_MSC_VER < 1400)
#  error "Only Microsoft Visual Studio 7.0 and later are supported."
#endif
Travis
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

okay, committed
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

Hey wowowow....you excluded vs2002/2003 with 1400. Do you think they shall be excluded?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Nox wrote:Hey wowowow....you excluded vs2002/2003 with 1400. Do you think they shall be excluded?
#if defined(_MSC_VER) && (_MSC_VER < 1300)
Please update to the latest revision (was fixed on March 16th).
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

Ohh sry my fault. Just read that he uses vitek version and there is 1400 used. I beg your pardon.
Post Reply