diff --git a/src/lexer.rs b/src/lexer.rs index 1f07338..8581381 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -197,7 +197,7 @@ unsafe fn get_string_value() -> Vec { stringValue[0..stringLength as usize].to_owned() } -#[link(name="lexer", link="static")] +#[link(name="lexer", kind="static")] extern "C" { static yytext: *mut c_char; static stringLength: u16; @@ -205,4 +205,4 @@ extern "C" { fn next_token() -> TokenMeta; pub fn set_input(filename: *const c_char) -> c_int; -} \ No newline at end of file +}