Mike Marchywka wrote:
Well, I wanted a static build but couldn't get that to work and then I realized it needed a dll only when I tried to run in different location. These are the lib's I have.
$ ls ./boost/lib | grep regex libboost_regex-gcc-mt-1_33_1.a libboost_regex-gcc-mt-s-1_33_1.a libboost_regex-gcc-mt-s.a libboost_regex-gcc-mt.a
Linking against the static produced undefines such as
./boost/lib/libboost_regex-gcc-mt-s-1_33_1.a(cpp_regex_traits.o):cpp_regex_trait s.cpp:(.text+0x4cf): undefined reference to `__gnu_cxx::__exchange_and_add(int v olatile*, int)'
Looks like you need -lpthread or maybe -rt (I can't remember which symbols are in which cygwin dll).
so it looked like the non-static was working.
It probably should as long as you're only linking to *one* regex library :-) John.