Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Error on Windows using gcc #23

Open
helsharif opened this issue May 10, 2021 · 1 comment
Open

Compiling Error on Windows using gcc #23

helsharif opened this issue May 10, 2021 · 1 comment
Labels

Comments

@helsharif
Copy link

helsharif commented May 10, 2021

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

@dbaston dbaston added the build label Jun 8, 2021
@whatnick
Copy link

whatnick commented Jun 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants