compiler error:
/home/wizard/projects/zig/sshz/.zig-cache/o/26c0322c148abb5a740835e0b76b8de5/cimport.zig:2027:42: error: unable to translate C
expr: unexpected token ‘a string literal’
pub const libssh2_channel_open_session = @compileError(“unable to translate C expr: unexpected token ‘a string literal’”);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
translate-c definition:
pub const libssh2_channel_open_session = @compileError("unable to translate C expr: unexpected token 'a string literal'");
I’m linking against my system library I’m too sure if that is the issue. Any help would be much appreciated!
You could always create a new C file with an exported function that wraps the macro, and use the function from your Zig code, leaving the macro to be compiled by the C compiler.