You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@andrewrk Oops! My bad!
I just found out the compile error comes from a "TestStep" I've added in build.zig, which runs before compiling the main executable target.
After commented out the test step, the executable target itself compiles fine.
I keep all test cases in the same file as the actual code for clarity and ease of code organization,
for now I could check builtin.is_test and ignore the @Cinclude("gtk/gtk.h") in test mode, as my tests does not use the header file.
In the long term maybe there should be an addIncludeDir() implemented for TestStep?
Ah yeah that's a good point. This is a pretty straightforward userland change to std/build.zig if anyone wants to take a crack at it. Otherwise I'll try to fix it soon!
I'd like to call GTK functions from my zig program, here is the relevant code:
But the compiler complaints about not finding the header file:
And the file is apparently there:
The text was updated successfully, but these errors were encountered: