Boost logo

Boost-Build :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-06 12:34:34

On 09/05/07 14:19, Vladimir Prus wrote:
> Just calling a function does not automatically creates a main target.
> There are just two ways to create a main target:
> - Call the targets.main-target-alternative
> - Call some existing rule that creates main target. That will
> will eventually call targets.main-target-alternative
I tried the 1st way by modifying:

as follows:
<--- cut here ---
import verbatim ;
import targets ;

exe codegen : codegen.cpp class.verbatim usage.verbatim
     t1.verbatim ;

targets.main-target-alternative t1_cpp ;

verbatim t1_cpp : t1.verbatim ;
>--- cut here ---
but when I tried to create t1_cpp target, got:
<--- cut here ---
bjam t1_cpp
in targets.main-target-alternative
rule t1_cpp.project unknown in module targets.
Jamfile:10: in load-aux
in load-jamfile
in load
in project.find
in load
in import
in boost-build
in module scope
>--- cut here ---
Could you please let me know how to correct this?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at