Compiling Problem :'(

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
ThOoR
Posts: 1
Joined: Sun Jun 08, 2008 12:42 am

Compiling Problem :'(

Post by ThOoR »

Hello, I've tried to do that HelloWorld - Tutorial from the Hompage (http://irrlicht.sourceforge.net/tut001.html) but everytime when i'am trying to compile I get that messages:

Code: Select all

--------------------Konfiguration: HelloWorld - Win32 Debug--------------------
Kompilierung läuft...
HelloWorld.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
d:\programme\irrlicht-1.4.1\include\scolor.h(301) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : Erwartet 3 Argumente - 2 unterstuetzt
        d:\programme\irrlicht-1.4.1\include\irrmath.h(80) : Siehe Deklaration von 'min_'
d:\programme\irrlicht-1.4.1\include\scolor.h(301) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'unsigned int' sein
        oder       'unsigned __int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(302) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : Erwartet 3 Argumente - 2 unterstuetzt
        d:\programme\irrlicht-1.4.1\include\irrmath.h(80) : Siehe Deklaration von 'min_'
d:\programme\irrlicht-1.4.1\include\scolor.h(302) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'unsigned int' sein
        oder       'unsigned __int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(303) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : Erwartet 3 Argumente - 2 unterstuetzt
        d:\programme\irrlicht-1.4.1\include\irrmath.h(80) : Siehe Deklaration von 'min_'
d:\programme\irrlicht-1.4.1\include\scolor.h(303) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'unsigned int' sein
        oder       'unsigned __int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(304) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : Erwartet 3 Argumente - 2 unterstuetzt
        d:\programme\irrlicht-1.4.1\include\irrmath.h(80) : Siehe Deklaration von 'min_'
d:\programme\irrlicht-1.4.1\include\scolor.h(304) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'unsigned int' sein
        oder       'unsigned __int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(336) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'int' sein
        oder       '__int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(338) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'int' sein
        oder       '__int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(340) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'int' sein
        oder       '__int32'
d:\programme\irrlicht-1.4.1\include\scolor.h(342) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : Vorlagenparameter 'T' ist mehrdeutig
        koennte 'int' sein
        oder       '__int32'
d:\programme\irrlicht-1.4.1\include\irrxml.h(538) : fatal error C1506: Weiterverarbeitung nach der Aufloesung von Bloecken nicht moeglich
Fehler beim Ausführen von cl.exe.

HelloWorld.exe - 13 Fehler, 0 Warnung(en)

It says there's something ambivalent ...


sry for my bad english :)


Edit: I'am using MS Visual C++ 6 :)
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Uninstall Visual Studio 6.0 and install the 2008 Express Edition.
Everything 6.0 will give you is pain ;)
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Support for MSVC 6.0 is erratic at best. I wonder if it's time to 'retire' the .dsp/.dsw files?
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 »

The word is ambiguous, not ambivalent. Anyway, it looks like VC6 is being irritated by some methods in math. I'll check if we can do something about it, but using MSVC Express seems a better option...
mikeee
Posts: 9
Joined: Tue Feb 14, 2006 3:15 pm
Location: Germany

Post by mikeee »

hm.. same problem here
in 1.3.1 (and earlier) was everything ok.
im getting these errors only under 1.4.1


Downloading MSVC Express already.. but any other ideas?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Don't use 'using namespace' to avoid name clashes with predefined methods. Or just use namespace qualifiers in the headers.
Motdepasse
Posts: 2
Joined: Fri Nov 14, 2008 7:04 pm

Post by Motdepasse »

rogerborg wrote:Support for MSVC 6.0 is erratic at best. I wonder if it's time to 'retire' the .dsp/.dsw files?
The newer MS C++ compilers do not support Windows 2000 which is what I use. Version irrlicht.1.4 was the last version that worked with MSVC 6.0. I would encourage continued support for this version of C++. Windows 2000 is stable and I see no reason to convert to XP or Vista. :!:
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, Wikipedia says different things: MSVC 2003 was the last supporting Windows 95 :!: while 2008 won't work under Windows 98 anymore - at least not for all languages and concepts supported by MSVC...
http://msdn.microsoft.com/en-us/vs2005/aa718687.aspx doesn't list windows 98, though, so maybe already 2005 didn't support Windows 98 as development OS, but only as a target?!
Anyway, VC6 is not supported anymore, beginning with Irrlicht 1.5 - and Irrlicht 1.4.x is known to have problems with compilation under VC6 8)
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Motdepasse wrote:
rogerborg wrote:Support for MSVC 6.0 is erratic at best. I wonder if it's time to 'retire' the .dsp/.dsw files?
The newer MS C++ compilers do not support Windows 2000 which is what I use. Version irrlicht.1.4 was the last version that worked with MSVC 6.0. I would encourage continued support for this version of C++. Windows 2000 is stable and I see no reason to convert to XP or Vista. :!:
No argument from me, 2K is the peak of Windows development.

However, Visual C++ 2005 runs just fine on Windows 2000.

It comes down to this: you upgrade to 2k5 (express), or we have to maintain an obsolete non-C++ toolchain indefinitely.

I do respect your position, but life is short, and I've got a lot of How I Met Your Mother episodes to download and watch after the wife has gone to bed.

Please, let it go. It's time to move into the 21st century. Join us: we have flying cars. Honest.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Motdepasse
Posts: 2
Joined: Fri Nov 14, 2008 7:04 pm

Post by Motdepasse »

rogerborg wrote:
Motdepasse wrote:
rogerborg wrote:Support for MSVC 6.0 is erratic at best. I wonder if it's time to 'retire' the .dsp/.dsw files?
The newer MS C++ compilers do not support Windows 2000 which is what I use. Version irrlicht.1.4 was the last version that worked with MSVC 6.0. I would encourage continued support for this version of C++. Windows 2000 is stable and I see no reason to convert to XP or Vista. :!:
No argument from me, 2K is the peak of Windows development.

However, Visual C++ 2005 runs just fine on Windows 2000.

It comes down to this: you upgrade to 2k5 (express), or we have to maintain an obsolete non-C++ toolchain indefinitely.

I do respect your position, but life is short, and I've got a lot of How I Met Your Mother episodes to download and watch after the wife has gone to bed.

Please, let it go. It's time to move into the 21st century. Join us: we have flying cars. Honest.
Thanks for pointing out that C++ 2005 Express Edition works on Windows 2000. I'm not sure how I missed trying it before! I suppose I have a certain resistance to using a product that I get for free to something that I paid hard earned bucks for.

You are right about life being too short but if something's not broken why fix it. I've never considered MSVC 6 as broken just quirky as is all MS products.

So you're from Scotland... Loved Edinburgh when I visited last year. Very friendly folks, just like coming home after a long absence.
Post Reply