Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add /usr/include? #117

Open
dgleich opened this issue Nov 27, 2022 · 0 comments
Open

Automatically add /usr/include? #117

dgleich opened this issue Nov 27, 2022 · 0 comments

Comments

@dgleich
Copy link

dgleich commented Nov 27, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant