Ticket #199 (closed defect: fixed)

Opened 11 months ago

Last modified 4 months ago

std:log() use in BufferOp.cpp breaks build on MSVC 7.1

Reported by: warmerdam Assigned to:
Priority: major Milestone: 3.1.0
Component: Core Version: svn-trunk
Severity: Critical Keywords: cmath math.h std
Cc: mloskot

Description

        cl -Iheaders /MD /GR /O2 /W3 /nologo /D "NDEBUG"  /D "NOMINMAX" /D "WIN32_LEAN_AND_MEAN" /D "NOGDI"  /GX /c operation\buffer\BufferOp.cpp /Fooperation\buffer\BufferOp.obj
BufferOp.cpp
operation\buffer\BufferOp.cpp(72) : error C2039: 'log' : is not a member of 'std'
operation\buffer\BufferOp.cpp(72) : error C2039: 'log' : is not a member of 'std'
operation\buffer\BufferOp.cpp(75) : error C2039: 'pow' : is not a member of 'std'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Change History

08/22/08 13:27:12 changed by warmerdam

  • cc set to mloskot.
  • status changed from new to closed.
  • resolution set to fixed.

I have "fixed" this by adding a cmath include in r2171, but I'm not sure if this is exactly right. I'm adding mloskot to cc: list since it appears he changed this code to use the std:: prefix.

08/22/08 13:39:50 changed by mloskot

  • keywords set to cmath math.h std.
  • component changed from Build/Install to Core.
  • severity changed from Unassigned to Critical.
  • milestone set to 3.0.1.

Frank,

Yes, you are right I did it. Probably, when I was adding std:: prefix, <cmath> was included indirectly by some other headers, so it compiled. I was just about to fix it. I confirm your patch works perfectly. Thank you for fixing!

01/12/09 20:41:43 changed by

  • milestone deleted.

Milestone 3.0.1 deleted

03/18/09 12:25:49 changed by pramsey

  • milestone set to 3.1.0.