Page 1 of 1

Compilation Errors Tutorial 1

Posted: Mon Sep 22, 2008 2:35 pm
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)

Posted: Mon Sep 22, 2008 3:30 pm
by hybrid
Use a newer compiler, or try to figure some comand line options which will make VC6 to resolve the overloaded methods properly.

Posted: Mon Sep 22, 2008 3:45 pm
by JP
Yah, try downloading MSVC 2008 Express Edition, it's free and will be much better than 6.0!

Posted: Mon Sep 22, 2008 3:46 pm
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.

Posted: Mon Sep 22, 2008 3:55 pm
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:

Posted: Tue Sep 23, 2008 7:34 am
by rogerborg
I'd thoroughly recommend Visual C++ 2008 Express as an IDE.