Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Error compilation using MinGW 64 on Windows 10 #28

Open
Arritmic opened this issue Mar 30, 2019 · 2 comments
Open

Error compilation using MinGW 64 on Windows 10 #28

Arritmic opened this issue Mar 30, 2019 · 2 comments

Comments

@Arritmic
Copy link
Contributor

Hi,
Compiling the library for MinGW 64, it comes to this like and it fails:

#elif defined(__linux__) || defined(__CYGWIN__) || defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )

Error: "endian.h: No such file or directory"

I am using just the last MinGW 7.3.0 64

@geoffpike
Copy link
Contributor

You can send me a fix, or you can workaround it by compiling with -D__LITTLE_ENDIAN__ or similar.

@Arritmic
Copy link
Contributor Author

@geoffpike I have requested a "pull-request" for a one possible solution. I have tested it using on Windows 10 five different compilers: MVSC 2015 64, MVSC 2017 64, MVSC 2017 32, MinGW 7.3.0 64 and MinGW 7.3.0 32.

When you are in Windows and MinGW is used is being detected for the macro defined( GNUC ).

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

No branches or pull requests

2 participants