Hello,
I am trying to compile exact extract in Windows using gcc.
I get the following error when trying to compile using mingw
D:\PortablePrograms\exactextract-master\build>mingw32-make
Scanning dependencies of target exactextract_STATIC
[ 1%] Building CXX object CMakeFiles/exactextract_STATIC.dir/src/area.cpp.obj
In file included from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\cstdint:41,
from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\bits\char_traits.h:621,
from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\ios:40,
from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\iostream:39,
from D:\PortablePrograms\exactextract-master\src\coordinate.h:18,
from D:\PortablePrograms\exactextract-master\src\area.h:21,
from D:\PortablePrograms\exactextract-master\src\area.cpp:14:
C:/OSGeo4W64/include/stdint.h:34:2: error: #error "Use this header only with Microsoft Visual C++ compilers!"
34 | #error "Use this header only with Microsoft Visual C++ compilers!"
| ^~~~~
CMakeFiles\exactextract_STATIC.dir\build.make:81: recipe for target 'CMakeFiles/exactextract_STATIC.dir/src/area.cpp.obj' failed
mingw32-make[2]: [CMakeFiles/exactextract_STATIC.dir/src/area.cpp.obj] Error 1
CMakeFiles\Makefile2:155: recipe for target 'CMakeFiles/exactextract_STATIC.dir/all' failed
mingw32-make[1]: [CMakeFiles/exactextract_STATIC.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Looks like this is an OSGeo4W distribution issue with that particular header. A lot of OSGeo4W suite has migrated to use the MSVC compiler which is pretty freely available. Perhaps that can address this issue.
Hello, I am trying to compile exact extract in Windows using gcc. I get the following error when trying to compile using mingw
D:\PortablePrograms\exactextract-master\build>mingw32-make Scanning dependencies of target exactextract_STATIC [ 1%] Building CXX object CMakeFiles/exactextract_STATIC.dir/src/area.cpp.obj In file included from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\cstdint:41, from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\bits\char_traits.h:621, from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\ios:40, from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\ostream:38, from c:\mingw\lib\gcc\mingw32\9.2.0\include\c++\iostream:39, from D:\PortablePrograms\exactextract-master\src\coordinate.h:18, from D:\PortablePrograms\exactextract-master\src\area.h:21, from D:\PortablePrograms\exactextract-master\src\area.cpp:14: C:/OSGeo4W64/include/stdint.h:34:2: error: #error "Use this header only with Microsoft Visual C++ compilers!" 34 | #error "Use this header only with Microsoft Visual C++ compilers!" | ^~~~~ CMakeFiles\exactextract_STATIC.dir\build.make:81: recipe for target 'CMakeFiles/exactextract_STATIC.dir/src/area.cpp.obj' failed mingw32-make[2]: [CMakeFiles/exactextract_STATIC.dir/src/area.cpp.obj] Error 1 CMakeFiles\Makefile2:155: recipe for target 'CMakeFiles/exactextract_STATIC.dir/all' failed mingw32-make[1]: [CMakeFiles/exactextract_STATIC.dir/all] Error 2 Makefile:147: recipe for target 'all' failed mingw32-make: *** [all] Error 2