Boost logo

Boost-Build :

Subject: [Boost-build] error: unknown feature "<compileflags>" when using this feature in requirements with msvc
From: Ganesh Borse (bganesh05_at_[hidden])
Date: 2012-07-03 22:02:44


Hi,

Sorry if this is not the correct forum for this question.

User manual (userman.pdf) that comes with the boost.build package mentions
(pg 43) that compileflags feature can be used to specify "additional
compiler flags that will be used when compiling both C and C++ sources.".

But when I tried to use the following syntax in Jamroot file:
<target-os>windows:<compileflags>/Fo:"Win32\\Debug" <address-model>32
<variant>debug

I got an error message:
error: unknown feature "<compileflags>"

This post <http://lists.boost.org/boost-build/2007/03/16244.php> refers
that compileflags is not a feature, if so, why is it listed in the user
manual along with the other features?

E.g. I am using linkflags feature and it works fine.

Can you please help me know how can I provide additional compiler flags to
msvc compiler if those are not supported thru msvc.jam?

I want to override the location of creation of .obj & .pdf file and also
want to use some additional complier optimization flags for release.

Since, <compileflags> is not working (or not supported), how can we provide
these flags?

Thanks for your help.



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk