Boost with MacPort (cannot recognize library when compiling code)
Hi,
I have sucessfully installed Boost with MacPort.
However when I tried compiling a code with this
header
|
#include <boost/lexical_cast.cpp>
|
It says it cannot recognize the location.
|
MyCode.cc:6:34: error: boost/lexical_cast.hpp: No such file or directory
|
I've checked that it exist here:
1 2
|
/opt/local/include/boost/lexical_cast.hpp
./opt/local/var/macports/software/boost/1.37.0_0+darwin_9/opt/local/include/boost/lexical_cast.hpp
|
This probably isn't the problem, but you put ".cpp" instead of ".hpp".
Check to make sure that /opt/local/include is in your system include path.
Topic archived. No new replies allowed.