Skip to content

MacOS "stdlib.h" not found #122

@MitchellWeg

Description

@MitchellWeg

I'm trying to compile my Julia library with CBinding. However, I cannot get it to compile:

Example:

c`-Wall

c"""
#include <stdlib.h>
"""

It errors with: "fatal error: 'stdlib.h' no such file or directory".

When I compile with verbose output, I notice it's looking for directories belonging to clang 14.0.6, but I only have clang 14.0.4 installed as my default MacOS clang. I installed clang 16 with brew, can I somehow link that?

Thanks in advance.

M1 Mac.
MacOS Ventura 13.4.1

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