Have not been able to successfully build since svn # 26183
Latest attempt 26202
Build environment: Windows XP Pro 32 bit, MS VCPP Express, Windows 7 SDK
Build Target: Blender Foundation, Windows 32 bit
Build fails at compling 'rayobject_svbvh.cpp'
Compiling ==> 'rayobject_svbvh.cpp'
rayobject_rtbuild.cpp
d:\blendersvn\blender\source\blender\blenlib\intern/math_base_inline.c(113) : er
ror C2668: 'log' : ambiguous call to overloaded function
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(567): cou
ld be 'long double log(long double)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(519): or
'float log(float)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(121): or
'double log(double)'
while tryirnagyo btjoe cmta_tscvhb vthh.ecp pa
rgument list '(int)'
scons: *** [D:\BlenderSVN\build\source\blender\render\intern\raytrace\rayobject.
obj] Error 2
d:\blendersvn\blender\source\blender\blenlib\intern/math_base_inline.c(113) : er
ror C2668: 'log' : ambiguous call to overloaded function
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(567): cou
ld be 'long double log(long double)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(519): or
'float log(float)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(121): or
'double log(double)'
while trying to match the argument list '(int)'
scons: *** [D:\BlenderSVN\build\source\blender\render\intern\raytrace\rayobject_
rtbuild.obj] Error 2
scons: building terminated because of errors.
Description
Description
Event Timeline
Comment Actions
Same problem here, it needs only a simple fix in math_base_inline.c line(113)
old line : return (float)pow(2, ceil(log(val) / log(2)));
new line : return (float)pow(2, ceil(log(val) / log(2.0f))); . Are you sure this started in revision 26183 because math_base_inline.c wasn't added untill 26191.