|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-14 03:40:38
Hi Noel,
> I'm reasonably new to boost build and I suspect this question has been
> asked & answered before but I haven't found one.
>
> I've got a simple Jamfile
>
> lib Fmwk : [ glob *.C ] ;
>
> that attempts build a library from c++ source files with upper case C
> suffixes. When I build with bjam, I get this error message. I get the
> same error message if I specify the file explicitly.
>
> [kbelco_at_sahp6583 votd]$ bjam
> /home/kbelco/boost_1_33_1/tools/build/v2/build/generators.jam:922: in
> ensure-type from module generators
> error: target { Fmwk_Algorithm.C. } has no type
Please use the following in your Jamroot:
import type ;
type.register-suffixes C : CPP ;
> It appears that the Jambase file in jam_src is configured to recognize
> *.C c++ files but it clearly doesn't work correctly on either Darwin or
> Linux Redhat Enterprise 4 with boost 1.33.1.
I'd be wary of making this a default setting (in tools/type/cpp.jam), because
Windows has case-insensitive files system, so it's easy to start compiling C
files as C++.
- Volodya
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