Skip to content

Compile does not find yaml.h include file with Macports on Mac #4

@DavidSagan

Description

@DavidSagan

Error message:

(base) MAC:~/BmadBase/pals-cpp/build> make
[ 25%] Building CXX object CMakeFiles/yaml_c_wrapper.dir/src/yaml_c_wrapper.cpp.o
/Users/dcs16/BmadBase/pals-cpp/src/yaml_c_wrapper.cpp:1:10: fatal error: 'yaml-cpp/yaml.h' file not found
    1 | #include <yaml-cpp/yaml.h>
      |          ^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/yaml_c_wrapper.dir/src/yaml_c_wrapper.cpp.o] Error 1
make[1]: *** [CMakeFiles/yaml_c_wrapper.dir/all] Error 2
make: *** [all] Error 2

The include file is at

/opt/local/include/yaml-cpp/yaml.h

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