
26 Aug
2003
26 Aug
'03
10:09 a.m.
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.