I'm quite new to boost, and wondering how best to install it under linux with GCC. I have no problem getting it to compile and run, but with all the .a files hidden away in huge directory trees, and the include files hidden several layers deep, I'm wondering what people have done to make the whole lot more accessible - and easy to manage.
E.g. at the moment, I have to add horrendously long -L commands with GCC to each library I want to link to, and if I want to avoid linking to the libraries by using the 'inline' headers* I can't seem to move the headers out of the boost installation tree, as they use relative paths to cpp files in the lib directory.
I personally use makefiles. This simplifies the management of projects, removes the need to specifically handle complex paths, etc. For example
# This may not be 100% correct, but you get the idea: # make file for GNU Make # note - \t --> tab character
# common stuff (in its own file) - common.mk
DBASE = /usr DGCC = /usr/local DBOOST = /usr/boost
IPATH = $(INCLUDEPATHS) IPATH += -I "$(DBASE)/src" -I "$(DGCC)/src" IPATH += -I "$(DBOOST)"
LPATH = $(LIBPATHS) LPATH += -L "$(DBASE)/lib" -L "$(DGCC)/lib" LPATH += -L "$(DBOOST)/lib"
CC = gcc -c LNK = gcc
%.o : %.cpp [EMAIL PROTECTED] $@ [EMAIL PROTECTED](CC) -o $< $@
%.exe : %.o %.a [EMAIL PROTECTED] $@ [EMAIL PROTECTED](LNK) -o $< $@
# main project - makefile
include common.mk
start: hello.exe bye.exe
hello.exe: hello.o main.o bye.exe: bye.o
---> make files rule :-)
Regards, Reece
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost