Build error
by Nick Hunter · in General Game Discussion · 02/21/2004 (9:06 pm) · 5 replies
I just got this today and am trying to look at the examples, but when i try to build them they all come up with this:
"error C2668: 'sqrt' :ambiguous call to overload function"
line 97 in the RE_Math.h
Im using MS visual C++ .net 2003 as the compiler any ideas on how to fix this?
-Thanks
"error C2668: 'sqrt' :ambiguous call to overload function"
line 97 in the RE_Math.h
Im using MS visual C++ .net 2003 as the compiler any ideas on how to fix this?
-Thanks
#2
error LNK1181: cannot open input file 'Reaction Engine SDk(Debug).lib'
-Thanks
02/21/2004 (11:17 pm)
Got it down to one link error:error LNK1181: cannot open input file 'Reaction Engine SDk(Debug).lib'
-Thanks
#3
02/25/2004 (10:36 pm)
Make sure the Reaction Engine\Libs directory is in your link path. i.e. Tools->Options, Projects->VC++ Directories->Show Directories for: Library Files.
#5
you have to go done to line 97 in RE_Math.h where it says:
int length(void) { return((int)(sqrt(SQ(x) + SQ(y)))); }
the fix is:
float length(void){return((float)(sqrt(SQ(x)+SQ(y))));}
-Thanks
03/17/2004 (8:59 pm)
Kenneth,you have to go done to line 97 in RE_Math.h where it says:
int length(void) { return((int)(sqrt(SQ(x) + SQ(y)))); }
the fix is:
float length(void){return((float)(sqrt(SQ(x)+SQ(y))));}
-Thanks
Torque Owner Nick Hunter
-Thanks