having issues adding #include <libxml++/libxml++.h>
using xcode in osx 10.8 installed libxml via brew
any suggestions?
Last edited on
I found the file in
/usr/include/libxml++-2.6/libxml++/libxml++.h
so you need to compile with the
-I/usr/include/libxml++-2.6 |
flag.
Or easier, use pkg-config
$ g++ $(pkg-config --cflags libxml++-2.6) -c foo.cpp
$ g++ $(pkg-config --libs libxml++-2.6) foo.o -o program.bin |
Last edited on
did you install libxml++ ? what did you use fink/ports/brew or did you just compile your self? I did not see it there, in my /usr/include
I do not use osx, but linux.
Installed with
> I did not see it there, in my /usr/include
try also
/usr/local/include
checkout if you've got a command to list the files of a package.
this might be my issue. going to use a different lib/h.
Last edited on
If I recall correctly, homebrew installs its libraries and headers into
In there should be a folder called libxml2 and inside it, a
and
folder. Add them into your include and library search paths respectively and you should be good to go.
Yes!
my $PATH was loading the wrong directory first. so my brew installs were not being seen by xcode. Thank you for your input!
Topic archived. No new replies allowed.