Boost logo

Boost Users :

From: John Maddock (boost.regex_at_[hidden])
Date: 2003-08-26 05:09:04

> how to staticaly link a boost library (regex) to a project (what is the
> command line for that)
> Thanks

If the library is in your compilers search path (usr/local/lib is the usual
place to put these things, then:

g++ object-file-list -lboost_regex

will do it, otherwise you can explicitly add the name of the library to the

g++ object-file-list boost-root/libs/regex/build/gcc/libboost_regex.a



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at