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

"Cannot find type size_t in this scope" when building #1

Closed
JesseTG opened this issue Dec 28, 2022 · 4 comments
Closed

"Cannot find type size_t in this scope" when building #1

JesseTG opened this issue Dec 28, 2022 · 4 comments

Comments

@JesseTG
Copy link
Contributor

JesseTG commented Dec 28, 2022

I'm attempting to build a local copy of this repo, but I keep getting errors relating to the type size_t being missing. It looks like it's not consistently being generated by bindgen; is there any reason not to use the type provided by libc instead?

@max-m
Copy link
Owner

max-m commented Dec 31, 2022

Hi,
at first I could not reproduce this issue on my system, but while working on incorporating the last couple of upstream updates of the libretro.h I ran into this problem as well after a run of cargo clean.

I’ve pushed some updates to the dev branch.
Those changes also include the change from size_t to usize as per rust-lang/rust-bindgen@cc78b6f.
This should hopefully fix this issue.

@max-m
Copy link
Owner

max-m commented Jan 3, 2023

I’ve bumped the version to 0.2.x and published the update on crates.io.
The bump from 0.1.x to 0.2.x happened due to the size_t -> usize changes, which affected some function signatures.

If you can confirm that building this version works fine on your end I’ll close this issue. :)

@JesseTG
Copy link
Contributor Author

JesseTG commented Jan 3, 2023

Thank you! I want to finish troubleshooting something on my branch, then I'll merge these new commits into it. After that, I'll submit a PR with my Vulkan additions.

@max-m
Copy link
Owner

max-m commented Jan 10, 2023

I’ll close this issue as fixed by 2cf0599.

@max-m max-m closed this as completed Jan 10, 2023
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