Problem using yaml-cpp on OS X

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-02-04T18:33:42Z Indexed on 2010/03/12 6:07 UTC
Read the original article Hit count: 427

Filed under:
|
|
|
|

So I'm having trouble compiling my application which is using yaml-cpp

I'm including "yaml.h" in my source files (just like the examples in the yaml-cpp wiki) but when I try compiling the application I get the following error:

g++    -c -o entityresourcemanager.o entityresourcemanager.cpp
entityresourcemanager.cpp:2:18: error: yaml.h: No such file or directory
make: *** [entityresourcemanager.o] Error 1

my makefile looks like this:

CC = g++
CFLAGS = -Wall
APPNAME = game
UNAME = uname
OBJECTS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))

mac: $(OBJECTS) 
        $(CC) `pkg-config --cflags --libs sdl` `pkg-config --cflags --libs yaml-cpp`  $(CFLAGS) -o $(APPNAME) $(OBJECTS)

pkg-config --cflags --libs yaml-cpp returns:

-I/usr/local/include/yaml-cpp  -L/usr/local/lib -lyaml-cpp

and yaml.h is indeed located in /usr/local/include/yaml-cpp

Any idea what I could do?

Thanks

© Stack Overflow or respective owner

Related posts about pkg-config

Related posts about yaml-cpp