根据CSDN上的C语言读取GDAL读取时候,说缺头文件,一个一个添加的话有几十个头文件,并且有些还要网上查找,最后还报错,,,,
geotiff.cpp(2): warning: In file included from...
../Inc\gdal.h(47): warning: In file included from...
../Inc/cpl_progress.h(44): warning: '__stdcall' calling convention is not supported for this target [-Wignored-attributes]
void CPL_DLL CPL_STDCALL GDALDestroyScaledProgress( void * );
^
../Inc/cpl_config.h(8): note: expanded from macro 'CPL_STDCALL'
# define CPL_STDCALL __stdcall
^
geotiff.cpp(2): warning: In file included from...
../Inc\gdal.h(48): warning: In file included from...
../Inc/cpl_virtualmem.h(37): warning: In file included from...
../Inc/cpl_vsi.h(62): warning: In file included from...
../Inc\unistd.h(1): error: macro name must be an identifier
#ifndef?_UNISTD_H
^
../Inc\unistd.h(131): warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif?/**?_SYS_UNISTD_H?*
^
//
../Inc\unistd.h(131): error: unterminated /* comment
#endif?/**?_SYS_UNISTD_H?*
^
geotiff.cpp(2): warning: In file included from...
../Inc\gdal.h(48): warning: In file included from...
../Inc/cpl_virtualmem.h(37): warning: In file included from...
../Inc/cpl_vsi.h(66): error: 'sys/stat.h' file not found
#include <sys/stat.h>
^~~~~~~~~~~~
25 warnings and 3 errors generated.
compiling geotiff.cpp...
"SevoCtrl\SevoCtrl.axf" - 3 Error(s), 25 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03