Skip to content

Should #include <CoreFoundation/CFNumber.h> work? Only #include </Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFNumber.h> does. #361

@dhpiggott

Description

@dhpiggott

In https://github.com/dhpiggott/plutus/blob/c2edf3b0265a75b78332a15e6cae2d012eee7706/macos/macos.h I found the only way to get bindings to generate is to fully specify the paths to the macOS SDK headers. However, I am able to use the short form at https://github.com/dhpiggott/plutus/blob/c2edf3b0265a75b78332a15e6cae2d012eee7706/build.sbt#L24.

I would expect #include <CoreFoundation/CFNumber.h> etc. to work, but when I try that form, sn-bindgen itself runs without errors, but it simply doesn't generate the bindings, (and so compilation of the app itself fails).

I've attempted to figure this out a few times since I first ran into it but each time without success.

So I thought I should check - is my expectation that the short form should work valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions