From: Patrick H. <pa...@13...> - 2005-02-19 21:39:09
|
st...@cs... wrote: > I have a project (simple OpenGL) which compiles fine under linux using gmtl. I > copied the project (including the gmtl folder with all its .h files and > subfolders. I get all these errors from Math.h compiling it such as: > > > h:\include\gmtl\Math.h(88): error C3861: 'fabsf': identifier not found, even > with argument-dependent lookup > h:\include\gmtl\Math.h(104): error C2039: 'ceilf' : is not a member of > 'operator``global namespace''' > > and similar errors with a bunch of things like tan,sin,cos,sqrt,etc. > > I thought these should all be in <math.h> which seems to be included. Any idea > what is going on here and how to fix it? Perhaps windows.h needs to be included before any GMTL headers are included? In my experience, including windows.h usually fixes unexpected compile errors relating to functions and preprocessor symbols. -Patrick -- Patrick L. Hartling | VP Engineering, Infiscape Corp. PGP: http://tinyurl.com/2oum9 | http://www.infiscape.com/ |