Opened 16 years ago

Closed 16 years ago

#706 closed defect (duplicate)

DWFCore compilation error

Reported by: rbranson Owned by:
Priority: low Milestone:
Component: General Version: 2.0.1
Severity: trivial Keywords:
Cc: External ID:

Description

While compiling MapGuide 2.0.2, I encountered an error:

BufferOutputStream.cpp: In member function 'virtual size_t DWFCore::DWFBufferOutputStream::write(const void*, size_t)':
BufferOutputStream.cpp:192: error: expected primary-expression before '?' token
BufferOutputStream.cpp:192: error: expected `:' before ';' token
BufferOutputStream.cpp:192: error: expected primary-expression before ';' token

This was fixed by modifying some macros in the Oem/DWFTK7.1/develop/global/src/dwfcore/ansi/Core.h file:

    //
    // max
    //
#ifndef dwf_max
#define dwf_max( a, b )    (((a) > (b)) ? (a) : (b))
#endif

    //
    // min
    //
#ifndef dwf_min
#define dwf_min( a, b )    (((a) < (b)) ? (a) : (b))
#endif

Change History (1)

comment:1 by rbranson, 16 years ago

Resolution: duplicate
Status: newclosed

This is already fixed in the trunk.

Note: See TracTickets for help on using tickets.