Boost in MacPorts Issue

Rainer Müller raimue at macports.org
Fri Jan 23 19:53:23 PST 2009


Gundala Viswanath wrote:
> I have sucessfully installed Boost via MacPorts.
> However there are several issues after that.
> 
> 1. My code can't recognize the location of Boost during compilation.
>    Although it exist here:
> 
> ./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
> 
>    and also I have in my .bash_profile this export:
>     export CXXFLAGS="-I /opt/local/include";

Usually this should go into CPPFLAGS as it is for the preprocessor.
Also, check that the Makefile or build system is honoring the
environment variables.

Maybe you need to pass this directly to make like:
  make CPPFLAGS='-I /opt/local/include'

Just out of interest, which software is this and if it is Open Source,
would it be worth to add it to MacPorts?

> 2. When I do:
>     man boost ; or
>     which boost
> 
>     It doesnot show anything.

As boost is a library, there is no executable by that name. Unless you
select the +docs variant, there will also not be any documentation.

You can list the contents of the port you installed using the command
'port contents boost'.

Rainer


More information about the macports-users mailing list