Skip to content

Automatically add /usr/include? #117

@dgleich

Description

@dgleich

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions