ssize_t conflicts with minGW (C++) on windows
645226Jul 1 2008 — edited Apr 10 2011Dear 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 ======