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

Compiling on rust 1.4 fails #117

Open
chwevans opened this issue Nov 8, 2015 · 1 comment
Open

Compiling on rust 1.4 fails #117

chwevans opened this issue Nov 8, 2015 · 1 comment

Comments

@chwevans
Copy link

chwevans commented Nov 8, 2015

Building master as of today fails on rust 1.4.

$ cargo build
   Compiling pistoncore-glfw_window v0.12.0 (file:///Users/chase/Documents/rust_projects/glfw_window)
src/lib.rs:108:27: 108:53 error: mismatched types:
 expected `*const libc::types::common::c95::c_void`,
    found `*const libc::c_void`
(expected enum `libc::types::common::c95::c_void`,
    found enum `libc::c_void`) [E0308]
src/lib.rs:108         gl::load_with(|s| window.get_proc_address(s));
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:108:27: 108:53 help: run `rustc --explain E0308` to see a detailed explanation
src/lib.rs:264:9: 264:48 error: mismatched types:
 expected `*const libc::types::common::c95::c_void`,
    found `*const libc::c_void`
(expected enum `libc::types::common::c95::c_void`,
    found enum `libc::c_void`) [E0308]
src/lib.rs:264         self.window.get_proc_address(proc_name)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:264:9: 264:48 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to 2 previous errors
Could not compile `pistoncore-glfw_window`.

To learn more, run the command again with --verbose.
@bvssvni
Copy link
Member

bvssvni commented Nov 8, 2015

This is probably because of a breaking change in libc. See PistonDevelopers/eco#98

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

No branches or pull requests

2 participants