Compilation Errors Tutorial 1

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
ashwin.lele
Posts: 7
Joined: Mon Sep 22, 2008 2:16 pm

Compilation Errors Tutorial 1

Post by ashwin.lele »

Hello guys

I am having problems with even compiling the first tutorial.
I have followed the steps in tutorial correctly

1.Include header files.
2.Include library files.

I am using Visual C++ 6.0

Do i require to include the DX9 library and header files from SDK?

I get the following errors.

Any help would be appreciated. Thanks

--------------------Configuration: HelloWorld - Win32 Release--------------------
Compiling...
main.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
..\..\include\SColor.h(301) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
..\..\include\irrMath.h(80) : see declaration of 'min_'
..\..\include\SColor.h(301) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
..\..\include\SColor.h(302) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
..\..\include\irrMath.h(80) : see declaration of 'min_'
..\..\include\SColor.h(302) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
..\..\include\SColor.h(303) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
..\..\include\irrMath.h(80) : see declaration of 'min_'
..\..\include\SColor.h(303) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
..\..\include\SColor.h(304) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
..\..\include\irrMath.h(80) : see declaration of 'min_'
..\..\include\SColor.h(304) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
..\..\include\SColor.h(336) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
..\..\include\SColor.h(338) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
..\..\include\SColor.h(340) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
..\..\include\SColor.h(342) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
..\..\include\irrXML.h(538) : fatal error C1506: unrecoverable block scoping error
Error executing cl.exe.

HelloWorld.exe - 13 error(s), 0 warning(s)
--------------------Configuration: HelloWorld - Win32 Debug--------------------
Compiling...
main.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(301) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\irrmath.h(80) : see declaration of 'min_'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(301) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(302) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\irrmath.h(80) : see declaration of 'min_'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(302) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(303) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\irrmath.h(80) : see declaration of 'min_'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(303) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(304) : error C2780: 'const T &__cdecl irr::core::min_(const T &,const T &,const T &)' : expects 3 arguments - 2 provided
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\irrmath.h(80) : see declaration of 'min_'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(304) : error C2782: 'const T &__cdecl irr::core::min_(const T &,const T &)' : template parameter 'T' is ambiguous
could be 'unsigned int'
or 'unsigned __int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(336) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(338) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(340) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\scolor.h(342) : error C2782: 'const T __cdecl irr::core::clamp(const T &,const T &,const T &)' : template parameter 'T' is ambiguous
could be 'int'
or '__int32'
e:\irrlicht\irrlicht-1.4.1\irrlicht-1.4.1\include\irrxml.h(538) : fatal error C1506: unrecoverable block scoping error
Error executing cl.exe.

HelloWorld.exe - 13 error(s), 0 warning(s)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Use a newer compiler, or try to figure some comand line options which will make VC6 to resolve the overloaded methods properly.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yah, try downloading MSVC 2008 Express Edition, it's free and will be much better than 6.0!
Image Image Image
ashwin.lele
Posts: 7
Joined: Mon Sep 22, 2008 2:16 pm

Post by ashwin.lele »

Thanks

I tested it with DevC++ and its fine.
Should i switch to VC++ 2008? Because DevC++ feels slightly difficult for a newcomer.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I think DevC++ is fine for a newcomer, it's what i first used and still use to this day for personal work. But i would still advise you to use VC08 as it's much better. I really need to stop using DevC++ but can't seem to be bothered to make the change fully :lol:
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I'd thoroughly recommend Visual C++ 2008 Express as an IDE.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply