Boost logo

Boost Users :

From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2005-03-29 06:39:45


Eyal Inbar wrote:
> Thank
> It's in CPPFLAGS. but i found it after i look into the Makefile
> and try some arguments.
> Now i found that in /root/.bash_profile

Doing everything as root is not a great idea.

> i set CXX to be my compiler command
> export CXX="g++ -ftemplate-depth-31"
> and it works with all the projects

CXX is just supposed to name the compiler to use. You should put
options in the CXXFLAGS variable. However, if you're going to be
sharing this source with anyone else, it may be as well to define
CXXFLAGS in the Makefile so that they don't have to go through this.
(Though that assumes they will also be using g++.)

Ben.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net