-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
VC++ winnt.h fatal error "No Target Architecture" in stdlib_io. #14259
Comments
This works fine on stable, its a regression in devel. Nim Compiler Version 1.2.0 [Windows: amd64]
Compiled at 2020-04-03
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: 7e83adff84be5d0c401a213eccb61e321a3fb1ff
active boot switches: -d:releasev``` |
I did a little more digging around:
|
Looks like this bug was fixed with Nim 1.2.2 https://nim-lang.org/blog/2020/06/17/version-122-released.html |
This bug is still present with the latest develop branch. It is reproducible with both MSVC and Clang for Windows.
|
also have this issue
I want to static link openssl library which installed by vcpkg, build command
errors
|
This bug is still present today, both in the clang compiler, vcc and tcc. It was introduced by the commit |
* IPv6 text representation according to RFC 5952 * Revert IPv6 text representation according to RFC 5952 * fix #14259 #15621 fix #14259 #15621 * Update lib/system/io.nim * reverted IoHandle removal * adaptation of types for WinAPI Co-authored-by: Andreas Rumpf <rumpf_a@web.de> (cherry picked from commit d15f63a)
* IPv6 text representation according to RFC 5952 * Revert IPv6 text representation according to RFC 5952 * fix nim-lang#14259 nim-lang#15621 fix nim-lang#14259 nim-lang#15621 * Update lib/system/io.nim * reverted IoHandle removal * adaptation of types for WinAPI Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* IPv6 text representation according to RFC 5952 * Revert IPv6 text representation according to RFC 5952 * fix nim-lang#14259 nim-lang#15621 fix nim-lang#14259 nim-lang#15621 * Update lib/system/io.nim * reverted IoHandle removal * adaptation of types for WinAPI Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Getting this error from Visual C++ but it works on Apr 15th compiler so its a very recent change.
It looks like this error is related to WIN32_LEAN_AND_MEAN and the order in which one imports <windows.h>. Maybe some thing changed in stdlib_io?
The text was updated successfully, but these errors were encountered: