Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2007-08-28 10:56:36


Thorsten Ottosen wrote, on 8/28/2007 10:49 AM:
> Hi all,
>
> Often I only want to compile a single .cpp file I'm working on.
> Thus I could add a Jamfile with an obj target for each .cpp file in my
> project. This seems a bit anoying. Is there a way to auto generate a
> target (perhaps having the same name as the .cpp file without it's
> extension)?
>
> Thanks in advance
>
> -Thorsten
You can tell it to generate the object file directly by doing "bjam
foo.o" on Unix or "bjam foo.obj" on Windows (or whatever the extension
for object files is on your system). Assuming you have a foo.cpp, it
will build it. You'll get something like this:

notice: could not find main target foo.obj
notice: assuming it's a name of file to create

Phillip


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