[mapguide-trac] #706: DWFCore compilation error

MapGuide Open Source trac_mapguide at osgeo.org
Mon Sep 22 22:23:41 EDT 2008


#706: DWFCore compilation error
------------------------+---------------------------------------------------
   Reporter:  rbranson  |       Owner:       
       Type:  defect    |      Status:  new  
   Priority:  low       |   Milestone:       
  Component:  General   |     Version:  2.0.1
   Severity:  trivial   |    Keywords:       
External_id:            |  
------------------------+---------------------------------------------------
 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

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/706>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list