Boost logo

Boost-Build :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2006-12-09 13:29:19


Hi Chris,

Look in boost/tools/build/v2/tools/types/cpp.jam

This is what mine looks like and we build with C files okay.

# Copyright David Abrahams 2004. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
type CPP : cpp cxx cc C ;

-- Noel

On Dec 8, 2006, at 10:05 PM, Chris Weed wrote:

> Hi,
> I posted this before and didn't get a response, so I thought I
> would try again.
>
> I am using the gcc toolset to try and build an executable with the .C
> extension. I get the error at the end of this email.
> I tried just a simple executable in my Jamfile with boost-build,
> such as:
>
> exe test : test.C ;
>
> The rule compile.c++ in gcc mentions the .C extensions, so I am
> wondering what I am doing wrong. I can't get this to work with
> libraries full of .C files, either.
>
> Chris
>
> /local/home/cweed/software/temp/boost-build/build/generators.jam:916:
> in ensure-type from module generators
> error: target { main.C. } has no type
> /local/home/cweed/software/temp/boost-build/build/generators.jam:1136:
> in generators.construct from module generators
> /local/home/cweed/software/temp/boost-build/build/targets.jam:1339: in
> construct from module object(typed-target)@411
> /local/home/cweed/software/temp/boost-build/build/targets.jam:1185: in
> object(typed-target)@411.generate from module object(typed-target)@411
> /local/home/cweed/software/temp/boost-build/build/targets.jam:759: in
> generate-really from module object(main-target)@415
> /local/home/cweed/software/temp/boost-build/build/targets.jam:735: in
> object(main-target)@415.generate from module object(main-target)@415
> /local/home/cweed/software/temp/boost-build/build-system.jam:298: in
> load from module build-system
> /local/home/cweed/software/temp/boost-build/kernel/modules.jam:261: in
> import from module modules
> /local/home/cweed/software/temp/boost-build/kernel/bootstrap.jam:132:
> in boost-build from module
> /local/home/cweed/software/temp/boost-build/boost-build.jam:1: in
> module scope from module
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/
> listinfo.cgi/boost-build


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