|
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
g++
> 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
list:
g++ object-file-list boost-root/libs/regex/build/gcc/libboost_regex.a
etc...
John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net