Comments (14)
Weird... can you post your sdkddkver.h?
from ui.
Here is my sdkddkver.h
Dňa 17. 8. 2014 16:55 Pietro Gagliardi wrote / napísal(a):
Weird... can you post your sdkddkver.h?
—
Reply to this email directly or view it on GitHub
#27 (comment)./**
- @file sdkddkver.h
- Copyright 2012, 2013 MinGW.org project
*- Permission is hereby granted, free of charge, to any person obtaining a
- copy of this software and associated documentation files (the "Software"),
- to deal in the Software without restriction, including without limitation
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
- and/or sell copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following conditions:
*- The above copyright notice and this permission notice (including the next
- paragraph) shall be included in all copies or substantial portions of the
- Software.
*- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- DEALINGS IN THE SOFTWARE.
_/
#ifndef _SDKDDKVER_H
#define SDKDDKVER_H
#pragma GCC system_header
/ Do not include _mingw.h since _mingw.h includes this file.
#include <_mingw.h>
*/
/**
- Define version masks
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx
- Values and names are guessed based on comments in the documentation.
*/
#define OSVERSION_MASK 0xFFFF0000
#define SPVERSION_MASK 0x0000FF00
#define SUBVERSION_MASK 0x000000FF
/**
- Macros to extract values from NTDDI version.
- Derived from comments on MSDN or social.microsoft.com
*/
#define OSVER(ver) ((ver) & OSVERSION_MASK)
#define SPVER(ver) (((ver) & SPVERSION_MASK) >> 8)
#define SUBVER(ver) ((ver) & SUBVERSION_MASK)
#define WINNTVER(ver) ((ver) / 0x00010000)
/**
- Macros to create the minimal NTDDI version from _WIN32_WINNT value.
*/
#define NTDDI_VERSION_FROM_WIN32_WINNT(ver) _NTDDI_VERSION_FROM_WIN32_WINNT(ver)
#define _NTDDI_VERSION_FROM_WIN32_WINNT(ver) ver##0000
/**
- Version constants defining _WIN32_WINNT versions.
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx
*/
#define _WIN32_WINNT_NT4 0x0400
#define _WIN32_WINNT_NT4E 0x0401
#define _WIN32_WINNT_WIN95 0x0400
#define _WIN32_WINNT_WIN98 0x0410
#define _WIN32_WINNT_WINME 0x0490
#define _WIN32_WINNT_WIN2K 0x0500
#define _WIN32_WINNT_WINXP 0x0501
#define _WIN32_WINNT_WS03 0x0502
#define _WIN32_WINNT_WIN6 0x0600
#define _WIN32_WINNT_VISTA 0x0600
#define _WIN32_WINNT_WS08 0x0600
#define _WIN32_WINNT_LONGORN 0x0600
#define _WIN32_WINNT_WIN7 0x0601
#define _WIN32_WINNT_WIN8 0x0602
/**
- Version constants defining _WIN32_IE versions.
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx
*/
#define _WIN32_IE_IE50 0x0500
#define _WIN32_IE_IE501 0x0501
#define _WIN32_IE_IE55 0x0550
#define _WIN32_IE_IE60 0x0600
#define _WIN32_IE_IE60SP1 0x0601
#define _WIN32_IE_IE60SP2 0x0603
#define _WIN32_IE_IE70 0x0700
#define _WIN32_IE_IE80 0x0800
/**
- Version constants defining NTDDI_VERSION.
- http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx
*/
#define __NTDDI_WIN5 0x05000000
#define __NTDDI_WIN51 0x05010000
#define __NTDDI_WIN52 0x05020000
#define __NTDDI_WIN6 0x06000000
#define __NTDDI_WIN61 0x06010000
#define __NTDDI_SP0 0x00000000
#define __NTDDI_SP1 0x00000100
#define __NTDDI_SP2 0x00000200
#define __NTDDI_SP3 0x00000300
#define __NTDDI_SP4 0x00000400
#define NTDDI_WIN2K __NTDDI_WIN5 + __NTDDI_SP0
#define NTDDI_WIN2KSP1 __NTDDI_WIN5 + __NTDDI_SP1
#define NTDDI_WIN2KSP2 __NTDDI_WIN5 + __NTDDI_SP2
#define NTDDI_WIN2KSP3 __NTDDI_WIN5 + __NTDDI_SP3
#define NTDDI_WIN2KSP4 __NTDDI_WIN5 + __NTDDI_SP4
#define NTDDI_WINXP __NTDDI_WIN51 + __NTDDI_SP0
#define NTDDI_WINXPSP1 __NTDDI_WIN51 + __NTDDI_SP1
#define NTDDI_WINXPSP2 __NTDDI_WIN51 + __NTDDI_SP2
#define NTDDI_WINXPSP3 __NTDDI_WIN51 + __NTDDI_SP3
#define NTDDI_WS03 __NTDDI_WIN52 + __NTDDI_SP0
#define NTDDI_WS03SP1 __NTDDI_WIN52 + __NTDDI_SP1
#define NTDDI_WS03SP2 __NTDDI_WIN52 + __NTDDI_SP2
#define NTDDI_VISTA __NTDDI_WIN6 + __NTDDI_SP0
#define NTDDI_VISTASP1 __NTDDI_WIN6 + __NTDDI_SP1
#define NTDDI_VISTASP2 __NTDDI_WIN6 + __NTDDI_SP2
#define NTDDI_LONGHORN NTDDI_VISTA
#define NTDDI_WIN6 NTDDI_VISTA
#define NTDDI_WIN6SP1 NTDDI_VISTASP1
#define NTDDI_WIN6SP2 NTDDI_VISTASP2
#define NTDDI_WS08 __NTDDI_WIN6 + __NTDDI_SP1
#define NTDDI_WIN7 __NTDDI_WIN61 + __NTDDI_SP0
/**
- Assign defaults
*/
#ifdef NTDDI_VERSIONifdef _WIN32_WINNT
if _WIN32_WINNT != OSVER(NTDDI_VERSION)
error The _WIN32_WINNT value does not match NTDDI_VERSION
endif
else
define _WIN32_WINNT WINNTVER(NTDDI_VERSION)
ifndef WINVER
define WINVER _WIN32_WINNT
endif
endif
#endif
#ifndef _WIN32_WINNT
ifdef WINVER
define _WIN32_WINNT WINVER
else
ifdef _WARN_DEFAULTS
warning _WIN32_WINNT is defaulting to _WIN32_WINNT_WIN2K
endif
define _WIN32_WINNT _WIN32_WINNT_WIN2K
endif
#endif
#ifndef WINVER
define WINVER _WIN32_WINNT
#endif
#ifndef NTDDI_VERSION
ifdef _WARN_DEFAULTS
warning NTDDI_VERSION is defaulting to _WIN32_WINNT version SPK0
endif
define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
#endif
#endif
from ui.
Are you sure that's the sole compile error? What happens if you set CGO_CFLAGS=-Wall -Wextra -pedantic
?
from ui.
I am sure this is whole compiler error. I redirected the output to the
clipboard.
So I wrote:
set CGO_CFLAGS="-Wall -Wextra -pedantic"
go install
And I obtained this:
github.com/andlabs/ui/redo
gcc: error: "-Wall: Invalid argument
gcc: error: unrecognized command line option '-pedantic"'
from ui.
Remove the quotes; Windows set
is very literal and takes everything after the =, including spaces.
from ui.
Ok I corrected my mistake and here is the new output:
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
^
In file included from
c:\go\src\github.com\andlabs\ui\redo\area_windows.go:12:0:
winapi_windows.h:24:21: fatal error: vsstyle.h: No such file or directory
#include <vsstyle.h>
^
compilation terminated.
from ui.
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.
from ui.
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 :/
from ui.
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
github.com/andlabs/ui
In file included from github.com\andlabs\ui\area_windows.go:12:0:
winapi_windows.h:24:21: fatal error: vsstyle.h: No such file or directory
compilation terminated.
from ui.
The only solution is to use Mingw-w64. The problem is MinGW has an incomplete Windows setup. Sorry :/
from ui.
Would this work with msys2? I seem to have the library but i still get the same error.
from ui.
It should. Are you building from the MinGW-w64 32-bit/64-bit Shell or the MSYS Shell?
from ui.
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.
from ui.
Yes; try building from the MinGW-w64 Shell that comes with MSYS.
from ui.
Related Issues (20)
- 希望能加入菜单和居中功能,谢谢 HOT 5
- Twitching progress bar HOT 2
- use go module
- Can you create Window center func ? HOT 1
- 有2个问题需要帮助/Two questions ask for help HOT 3
- Add Linux/ARM64 support to ‘andlabs/ui’
- how to add a new row to a table?
- Open file dialog crashes HOT 1
- ld: library not found for -lstdc++ HOT 2
- How can we fix windows size ? HOT 2
- How to remove a row from table properly HOT 1
- Avoid cgo HOT 2
- Cross-compilation on Linux for Windows HOT 1
- System notification message
- Reopen a closed window
- Is this project still alive? HOT 2
- collect2.exe: error: ld returned 1 exit status
- Win10下gocv+andlabs/ui同时使用出现以下错误
- possible to use ui load a webview to load html/js/css or remote url as ui HOT 1
- 如何在ui中嵌入式一个浏览器窗口
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.