@cInclude with path relative to calling .zig file

can i use @cInclude and reference a header file whose location is relative to the current .zig source file??? the examples i find seem to be including “system” header files…

i’m building with zig build-exe

i also receive “file not found” errors from zls within vscode…

Check this thread - it may help put you on the right path (it was about absolute paths but it goes into the implementation of cImport and cInclude): cImport and absolute paths

1 Like

i’m with you here; more trouble than it’s worth :wink:  i’ll just use zig translate-c ahead of time