<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I am having difficulty linking the Boost regex library to my Klone app.<br><br>I have created a separate trivial application ( boost_test.cpp ) to test if Boost is installed and functioning properly on my system ( Ubuntu ) and indeed it is.<br><br>I "#include &lt;boost/regex.hpp&gt;" and compile with "g++ boost_test.cpp -lboost_regex" and all is well.<br><br>Also, I had no problem linking the Postgres c++ interface and the Makefile looks like this:<br><br>#<br>WEBAPP_CFLAGS ?= -I$(KLONE_APP_TOP) -I$(KLONE_SRC) -I/usr/include <br>WEBAPP_LDADD ?= /usr/lib/libpq.a /usr/local/libpqxx.a<br>WEBAPP_LDFLAGS ?= -L/usr/lib -lpq -lpqxx<br>#<br><br>I am at this point with Boost:<br><br>#<br>WEBAPP_CFLAGS ?= -I$(KLONE_APP_TOP) -I$(KLONE_SRC) -I/usr/include/boost<br>WEBAPP_LDADD ?= /usr/lib/libboost_regex.a
 /usr/lib/libboost_regex-mt.a /usr/lib/libboost_regex-gcc43-1_35.a /usr/lib/libboost_regex-gcc43-mt-1_35.a<br>WEBAPP_LDFLAGS ?= -L/usr/lib -lboost_regex<br>#<br><br>and get the errors:<br><br>#<br>In file included from /usr/include/boost/regex/v4/regex_traits.hpp:39,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/include/boost/regex/regex_traits.hpp:27,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/include/boost/regex/v4/regex.hpp:39,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/include/boost/regex.hpp:31,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/daddy/Desktop/klo/webapp/www/index.klx:8:<br>/usr/include/boost/regex/v4/cpp_regex_traits.hpp: In member function ‘void
 boost::re_detail::cpp_regex_traits_char_layer&lt;charT&gt;::init()’:<br>/usr/include/boost/regex/v4/cpp_regex_traits.hpp:288: error: ‘err’ was not declared in this scope<br>/usr/include/boost/regex/v4/cpp_regex_traits.hpp: In member function ‘void boost::re_detail::cpp_regex_traits_implementation&lt;charT&gt;::init()’:<br>/usr/include/boost/regex/v4/cpp_regex_traits.hpp:653: error: ‘err’ was not declared in this scope<br>make[6]: *** [pg_96999b9cde0a341e168e8a972bcdc019.o] Error 1<br>#<br><br>And so I am not linking properly or am attempting to link the wrong files. Obviously I am doing something pretty dumb but can't figure what it is.<br><br>Any insight will be greatly appreciated.. Thanks.<br></div>
<!-- cg4.c4.mail.gq1.yahoo.com compressed/chunked Thu Dec 17 08:56:03 PST 2009 -->
</div><br>



      </body></html>