-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
unresolved external symbol GetUserProfileDirectoryW #52892
Comments
rust-lang/rustup#1468 perhaps? |
Thanks for the link, unfortunately it appears that I am using C:\Program Files (x86)\Windows Kits\8.1\Lib, why won't that work? If I am building my Visual Studio project with the same version, why should Rust care? Am I pulling in something that requires 10\Lib - if so - isn't that a bug? |
|
Thanks, after a bit of work (google) I figured out how to get the command that I needed to add the option to, however, what do I do with this?
Is there a way to specify them in my cargo.toml file? Thanks again, |
You're creating a |
I added userenv.lib to my MSVC project, but I still get the link error:
I will double check it to make sure I didn't screw it up somehow. |
After adding the following, it links, thanks so much for all the help! :)
This was way too painful... |
For future visitors, here is an easy cargo command to see the libs:
-q, --quiet = Do not print cargo log messages |
Figuring this out required way more ceremony that is acceptable...
Thank you |
I am hitting the following link error when trying to link a rust library in VS 2017 & VS 2015. I am trying to call an FFI function that is in the library. I don't have any calls to GetUserProfileDirectoryW() in my code.
My suspicion is that I need something in addition to libc? However, if that is the case, it would seem to be a bug? In any case, a work-around would be appreciated. Perhaps an issue with static libraries. Also I am building on Windows 10 / 64-bit.
Cargo.toml
The text was updated successfully, but these errors were encountered: