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 i set CXX to be my compiler command export CXX="g++ -ftemplate-depth-31" and it works with all the projects Eyal -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]On Behalf Of Malte Starostik Sent: Monday, March 28, 2005 4:30 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] compile error Eyal Inbar schrieb: [how to add -ftemplate-depth-NN]
Thanks But how and where can i changed the flag in g++ ?
I don't know exactly where it is in KDevelop, but usually in IDEs, somewhere in the project options you can add/change compilation flags. Look around in the options, check the manual. For often used flags there may be predefined options to check, for things like the template depth you probably have to enter -ftemplate-depth-NN where NN is the desired value manually in some "extended options" or similar field. HTH, Malte _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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.
participants (2)
-
Ben Hutchings
-
Eyal Inbar