[Klone-users] Boost regex

Varg Volk vargvolk at yahoo.com
Thu Dec 17 19:44:26 EST 2009


I am having difficulty linking the Boost regex library to my Klone app.

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.

I "#include <boost/regex.hpp>" and compile with "g++ boost_test.cpp -lboost_regex" and all is well.

Also, I had no problem linking the Postgres c++ interface and the Makefile looks like this:

#
WEBAPP_CFLAGS ?= -I$(KLONE_APP_TOP) -I$(KLONE_SRC) -I/usr/include 
WEBAPP_LDADD ?= /usr/lib/libpq.a /usr/local/libpqxx.a
WEBAPP_LDFLAGS ?= -L/usr/lib -lpq -lpqxx
#

I am at this point with Boost:

#
WEBAPP_CFLAGS ?= -I$(KLONE_APP_TOP) -I$(KLONE_SRC) -I/usr/include/boost
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
WEBAPP_LDFLAGS ?= -L/usr/lib -lboost_regex
#

and get the errors:

#
In file included from /usr/include/boost/regex/v4/regex_traits.hpp:39,
                 from /usr/include/boost/regex/regex_traits.hpp:27,
                 from /usr/include/boost/regex/v4/regex.hpp:39,
                 from /usr/include/boost/regex.hpp:31,
                 from /home/daddy/Desktop/klo/webapp/www/index.klx:8:
/usr/include/boost/regex/v4/cpp_regex_traits.hpp: In member function ‘void boost::re_detail::cpp_regex_traits_char_layer<charT>::init()’:
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:288: error: ‘err’ was not declared in this scope
/usr/include/boost/regex/v4/cpp_regex_traits.hpp: In member function ‘void boost::re_detail::cpp_regex_traits_implementation<charT>::init()’:
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:653: error: ‘err’ was not declared in this scope
make[6]: *** [pg_96999b9cde0a341e168e8a972bcdc019.o] Error 1
#

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.

Any insight will be greatly appreciated. Thanks.



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20091217/65a32d7a/attachment.html


More information about the klone-users mailing list