Game Development Community

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

About the author

Recent Threads


#1
02/21/2004 (10:13 pm)
OK i got that one figured out and now i get all this link errors so i rebuilt the Corona project, But am still getting all this LNK errors. I have no idea what to do now.

-Thanks
#2
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.
#4
03/15/2004 (7:52 pm)
Nick,

What was your fix for the "error C2668: 'sqrt' issue?
#5
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