2 Replies Latest reply: Apr 10, 2011 12:41 AM by 776338 RSS

    ssize_t conflicts with minGW (C++) on windows

    645226
      Dear Everyone


      I encountered the following error during compilation on windows 2000.
      The compiler is minGW.
      The version of dbxml is 2.4.13.

      It seems that the definition of ssize_t is conflicting between dbxml and minGW.
      I thought namespace can be one way to avoid confliction ("using namespace DbXml;") ,
      but this did not help.

      Any suggestions are very welcom.
      Thank you in advance.

      -yoshi


      ======== From here ======

      2.4.13/include/db.h:149: error: conflicting declaration 'typedef
      int32_t ssize_t'
      C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104:
      error: 'ssize_t' has a previous declaration as `typedef ssizet
      ssize_t'
      ../../../../Program Files/Oracle/Berkeley DB XML
      2.4.13/include/db.h:149: error: declaration of `typedef int32_t
      ssize_t'
      C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104:
      error: conflicts with previous declaration `typedef ssizet ssize_t'
      ../../../../Program Files/Oracle/Berkeley DB XML
      2.4.13/include/db.h:149: error: declaration of `typedef int32_t
      ssize_t'
      C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104:
      error: conflicts with previous declaration `typedef ssizet ssize_t'
      mingw32-make[1]: *** [debug/SaveXmlFile.o] Error 1
      mingw32-make[1]: Leaving directory

      ======== Until here ======