首页 新闻 搜索 专区 学院

HDF5和MinGW问题,定义冲突

0
[待解决问题]

In file included from c:\libs\HDF5\1.8.12\include/hdf5.h:24,

from c:\libs\HDF5\1.8.12\include/H5Include.h:17,

from c:\libs\HDF5\1.8.12\include/H5Cpp.h:20,

from ..\snacs-code-251-trunk\snSimulation\/snWriteResultFile.h:34,

from ..\snacs-code-251-trunk\snSimulation\snWriteResultFile.cpp:27:

c:\libs\HDF5\1.8.12\include/H5public.h:133:2: error: invalid preprocessing directive #typedef

mingw32-make[1]: *** [release/snWriteResultFile.o] Error 1

mingw32-make[1]: Leaving directory `C:/Users/Administrator/Desktop/Test/Qt_Test/GNSS/build-SNACS-桌面-Release'

mingw32-make: *** [release] Error 2

-----------------------------------------------------------------------------

H5public.h文件中相应的代码如下:

/*
Definethessize_ttypeifitnotisdefined*/
#ifH5_SIZEOF_SSIZE_T==0
/*Undefinethissize,wewillre-defineitinoneofthesectionsbelow*/
#undefH5_SIZEOF_SSIZE_T
#ifH5_SIZEOF_SIZE_T==H5_SIZEOF_INT
typedefintssize_t;
#defineH5_SIZEOF_SSIZE_TH5_SIZEOF_INT
#elifH5_SIZEOF_SIZE_T==H5_SIZEOF_LONG
typedeflongssize_t;
#defineH5_SIZEOF_SSIZE_TH5_SIZEOF_LONG
#elifH5_SIZEOF_SIZE_T==H5_SIZEOF_LONG_LONG
typedeflonglongssize_t;
#defineH5_SIZEOF_SSIZE_TH5_SIZEOF_LONG_LONG
#else/*Can'tfindmatchingtypeforssize_t*/
#error"nothing appropriate for ssize_t"
#endif
#endif

请问哪位大神能帮忙解决疑惑
TPrime.A的主页 TPrime.A | 菜鸟二级 | 园豆:216
提问于:2014-02-25 10:32
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册