-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
On MacOS 13 (Ventura), I find that I have to manually add the /usr/include directory with
module TestCBinding
using CBinding
let
opts = [""]
#opts = ["-I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/"]
c`$(opts)`
end
c"""
#include <stdio.h>
"""ji
end
This gives
┌ Error: Untitled-3:9: fatal error: 'stdio.h' file not found
│ #include <stdio.h>
│ ^~~~~~ here
in order to handle standard includes like time.h and stdio.h.
This works fine if I simply uncomment the line giving the /usr/include directory.
Is there a standard way to add this directory automatically?
Metadata
Metadata
Assignees
Labels
No labels