Skip to content
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

Link error when using WindowsProgramming::* #967

Closed
jquesada2016 opened this issue Jul 9, 2021 · 1 comment
Closed

Link error when using WindowsProgramming::* #967

jquesada2016 opened this issue Jul 9, 2021 · 1 comment

Comments

@jquesada2016
Copy link

Issue

If you place the following within a bindings sub-crate (build.rs):

fn main() {
    windows::build!(
        Windows::Win32::System::WindowsProgramming::*
    );
}

and the try to use anything from the bindings crate:

use bindings::Windows::Win32::System; // For example

fn main() {}

you end up with a linking error. If you would like me to provide the error, please let me know. I didn't want to include it here because of the sheer size...

Workaround

If instead of trying to build WindowsProgramming::*, you instead try to build against a specific function, i.e. WindowsProgramming::GetComputerName, then everything works.

Extra Details

I am using windows crate on the current latest version, 0.17.2, on Windows 10.

@kennykerr
Copy link
Collaborator

Thanks for reporting. This is a duplicate of #463.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants