Jester Fool
Emperor
Specifics: Vista 64 bit OS; Visual Studio 2008 Express; have successfully compiled the vanilla SDK and other Mods
I am trying to compile a SDK which uses BUG DLL makefile. I can compile it using the 2003 C++ Toolkit fine but I get CTD running the Debug DLL. I then switched to the tools that come with VS 2008 to make the Debug DLL. I have fixed the errors revealed so far (most of which were undeclared identifiers in For loops) but get these errors...
Looking at the source
the problem is clear since both y and dlineup have already been declared long and obviously 8 is an integer. How do you force a conversion? Any help would be appreciated.
I am trying to compile a SDK which uses BUG DLL makefile. I can compile it using the 2003 C++ Toolkit fine but I get CTD running the Debug DLL. I then switched to the tools that come with VS 2008 to make the Debug DLL. I have fixed the errors revealed so far (most of which were undeclared identifiers in For loops) but get these errors...
Spoiler :
CxImage/general/ximatran.cpp(183) : error C2666: 'div' : 2 overloads have similar conversions
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(480): could be 'ldiv_t div(long,long)'
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(446): or 'div_t div(int,int)'
1> while trying to match the argument list '(long, int)'
1>CxImage/general/ximatran.cpp(301) : error C2666: 'div' : 2 overloads have similar conversions
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(480): could be 'ldiv_t div(long,long)'
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(446): or 'div_t div(int,int)'
1> while trying to match the argument list '(long, int)'
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(480): could be 'ldiv_t div(long,long)'
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(446): or 'div_t div(int,int)'
1> while trying to match the argument list '(long, int)'
1>CxImage/general/ximatran.cpp(301) : error C2666: 'div' : 2 overloads have similar conversions
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(480): could be 'ldiv_t div(long,long)'
1> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include\stdlib.h(446): or 'div_t div(int,int)'
1> while trying to match the argument list '(long, int)'
Code:
div_r = div(y + dlineup, 8);