Boost logo

Boost-Build :

From: Lally Singh (lally.singh_at_[hidden])
Date: 2006-06-23 19:34:51

Hey all, simple question (please redirect me if this is the wrong place):
I've got a project that needs linking with some boost libraries, and I
don't know how to tell bjam to do it.

The Jamfile ends up in the files getting compiled, but the libraries
aren't linked in, causing the build to fail.

My Jamfile:

exe mfront : ./driver/driver.cpp ./main.cpp ./parser/generator.cpp :
<lib>filesystem <lib>wave ;

The Makefile I use, as I can't get the Jamfile to work:

# Invoke STLFilt to clean up what we're getting here.
CXX = gfilt

CXXFLAGS += -g -I/usr/local/src/boost -I.
LDFLAGS += -L/usr/local/lib

OBJECTS = driver/config.o driver/output.o driver/driver.o main.o
parser/generator.o parser/actions.o map/map.o

mfront.bin: $(OBJECTS)
        $(CXX) -o mfront.bin $^ $(LDFLAGS) -lboost_filesystem
-lboost_wave -lboost_regex

parser/generator.o: parser/decl_grammar.h parser/actions.h

        $(RM) $(OBJECTS) mfront.bin

Any suggestions?

Thanks in advance for any help?

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