-
Notifications
You must be signed in to change notification settings - Fork 0
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
asio-sys
build script error - windows.h
file not found
#7
Comments
Seems like this might be relevant https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2017 |
Kind of related rust-lang/rust-bindgen#1226 |
Ahhh hold up, I DLd clang 7 but it looks like rust-bindgen uses 6 https://github.com/rust-lang-nursery/rust-bindgen/blob/master/Cargo.toml Tom do you remember needing a specific version of clang? Could be worth double checking these vars too https://github.com/KyleMayes/clang-sys/blob/master/README.md#environment-variables |
No I used clang 7 and it worked. I'm pretty sure clang is backwards compatible |
This might be relevant even if it is out of date. I have used this same setup on 3 different machines and it's worked. I'm wondering if there was maybe some option needed when installing visual studio c++ tools. Also I selected include LLVM in all users PATH. Not sure if that is relevant. |
This post gives a really good summary of how to do it. |
It looks like LLVM is already in my path:
I can confirm that it's visible in the current powershell command line environment by running I'll keep looking into this once I get passed #14. |
Can you compile a super simple hello_world.cpp with clang? |
Agh no I can't actually:
|
I'll read over the posts more closely. |
Can you try that from one of the developer command prompt. I think it's the
"native" one that works for me
…On Sun., 14 Oct. 2018, 9:16 pm mitchmindtree, ***@***.***> wrote:
I'll read over the posts more closely.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AG8utlA13wn_jX5EO2qAT_P6Vl4TnBf9ks5ukw8YgaJpZM4XZXUR>
.
|
Do you mean try it with the regular windows I'm going to try and install the visual c++ build tools again - they were installed on this so long ago that I don't remember what that setup was like. |
Alright, up to a new error!
|
This link explains how to use vsvarsall.bat |
OK so back to the original windows.h error! The windows.h error is fixed by using a specific command prompt, in my case:
which can be found via the start menu. @freesig says this runs a |
The text was updated successfully, but these errors were encountered: