Skip to content

Instantly share code, notes, and snippets.

@iamralpht
Created October 23, 2014 04:11
Show Gist options
  • Save iamralpht/3220f2499d12379e256b to your computer and use it in GitHub Desktop.
Save iamralpht/3220f2499d12379e256b to your computer and use it in GitHub Desktop.
GL binding error
Compiling Viewdo v0.0.1 (file:///home/ralpht/homework/viewdo/rust)
/home/ralpht/homework/viewdo/rust/src/main.rs:10:27: 10:31 error: Expected a generator argument name, either: `api`, `profile`, `version`, `generator`, or `extensions`.
/home/ralpht/homework/viewdo/rust/src/main.rs:10 generate_gl_bindings!("gl", "core", "2.0", "static")
^~~~
error: aborting due to previous error
Could not compile `Viewdo`.
#![feature(phase)]
#![feature(globs)]
#[phase(plugin)]
extern crate gl_generator;
extern crate gl_init;
extern crate libc;
mod gl {
generate_gl_bindings!("gl", "core", "2.0", "static")
}
fn main() {
println!("Hello, world!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment