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
请问哪位大神能帮忙解决疑惑
同样报此错误
– 阿渣熊 2年前