-
Notifications
You must be signed in to change notification settings - Fork 648
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
Compilation problem under Windows #27
Comments
Weird... can you post your sdkddkver.h? |
Here is my sdkddkver.h
/**
/**
/**
/**
/**
/**
#define NTDDI_WIN2K __NTDDI_WIN5 + __NTDDI_SP0 #define NTDDI_WINXP __NTDDI_WIN51 + __NTDDI_SP0 #define NTDDI_WS03 __NTDDI_WIN52 + __NTDDI_SP0 #define NTDDI_VISTA __NTDDI_WIN6 + __NTDDI_SP0 #define NTDDI_LONGHORN NTDDI_VISTA #define NTDDI_WIN6 NTDDI_VISTA #define NTDDI_WS08 __NTDDI_WIN6 + __NTDDI_SP1 #define NTDDI_WIN7 __NTDDI_WIN61 + __NTDDI_SP0 /**
#ifndef _WIN32_WINNT ifdef WINVERdefine _WIN32_WINNT WINVERelseifdef _WARN_DEFAULTSwarning _WIN32_WINNT is defaulting to _WIN32_WINNT_WIN2Kendifdefine _WIN32_WINNT _WIN32_WINNT_WIN2Kendif#endif #ifndef WINVER define WINVER _WIN32_WINNT#endif #ifndef NTDDI_VERSION ifdef _WARN_DEFAULTSwarning NTDDI_VERSION is defaulting to _WIN32_WINNT version SPK0endifdefine NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)#endif #endif |
Are you sure that's the sole compile error? What happens if you |
I am sure this is whole compiler error. I redirected the output to the And I obtained this: github.com/andlabs/ui/redogcc: error: "-Wall: Invalid argument |
Remove the quotes; Windows |
Ok I corrected my mistake and here is the new output: github.com/andlabs/ui/redoIn file included from c:\mingw\include_mingw.h:35:0, error The _WIN32_WINNT value does not match NTDDI_VERSION
In file included from |
Hm... can you try installing a mingw-w64 setup and using that? I'll investigate the issue with the vanilla MinGW folks in the meantime. Thanks. |
Second thought: https://www.google.com/search?client=ubuntu&channel=fs&q=mingw+vsstyles.h&ie=utf-8&oe=utf-8#channel=fs&q=mingw+vsstyles.h+-w64 looks like vanilla MinGW doesn't include vsstyle.h, so I'm going to have to mandate -w64. Sorry about that :/ |
Is there a resolution to this problem? On Windows 8, 64 bit go get results in: C:\Users\J\GoProjects\src>go get github.com/andlabs/ui |
The only solution is to use Mingw-w64. The problem is MinGW has an incomplete Windows setup. Sorry :/ |
Would this work with msys2? I seem to have the library but i still get the same error. |
It should. Are you building from the MinGW-w64 32-bit/64-bit Shell or the MSYS Shell? |
I am building from the MSYS shell. Would that be the problem? I will certainly take a look when I am home. Thanks for your swift reply. |
Yes; try building from the MinGW-w64 Shell that comes with MSYS. |
I am not sure if I have a broken MinGW installation, or there is something "obvious" that must be done to compile Windows programs.
But if I try to compile the ui package in the "redo" directory, the following happens:
github.com/andlabs/ui/redo
In file included from c:\mingw\include_mingw.h:35:0,
from c:\mingw\include\windows.h:28,
from winapi_windows.h:17,
from c:\go\src\github.com\andlabs\ui\redo\area_windows.go:12:
c:\mingw\include\sdkddkver.h:137:8: error: #error The _WIN32_WINNT value does not match NTDDI_VERSION
error The _WIN32_WINNT value does not match NTDDI_VERSION
The text was updated successfully, but these errors were encountered: