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.
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
$(CXX) -o mfront.bin $^ $(LDFLAGS) -lboost_filesystem
parser/generator.o: parser/decl_grammar.h parser/actions.h
$(RM) $(OBJECTS) mfront.bin
Thanks in advance for any help?
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