[Klone-users] Boost regex

Varg Volk vargvolk at yahoo.com
Sun Dec 20 18:15:40 EST 2009


Thank you for the response.

I tried your suggestion by adding:

#include <boost/regex.hpp>
#include <u/libu.h>

to my test_app and compiling with:

g++ test_app.cpp -lboost_regex -I/home/daddy/Desktop/klo/klone-2.2.1/build/target/klone-core-2.2.1/libu/include

and the test_app compiled without error and gave meaningful results on execution.

However, I shifted the order of the #includes to:

#include <u/libu.h>
#include <boost/regex.hpp>

and ( ! ) got the very same error as my klone app:

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 test_app.cpp:4:
/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

and so you are on to something.

I then tried the same idea in my index.klx file but to no avail. 

My klone makefile is:

#
WEBAPP_CFLAGS ?= -I$(KLONE_APP_TOP) -I$(KLONE_SRC) -I/usr/include
WEBAPP_LDADD ?= /usr/lib/libboost_regex.a
WEBAPP_LDFLAGS ?= -L/usr/lib -lboost_regex
#

This must be something simple but then I am no expert programmer.
Thanks again and I will hammer away at this until I hear from you.





________________________________
From: thomas fossati <tho at koanlogic.com>
To: Klone users <klone-users at koanlogic.com>
Sent: Sun, December 20, 2009 9:48:57 AM
Subject: Re: [Klone-users] Boost regex

Hi Varg,


On Dec 18, 2009, at 1:44 AM, Varg Volk wrote:
I am having difficulty linking the Boost regex library to my Klone app.
>
[SNIP]
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
>

I haven't dig it, but my "nose" feeling is that the error has something to do with libu's err() function definition.  Could you please try to #include <u/libu.h> (together with the appropriate -I/path) in your test application and see if the same error shows up ?

Thanks, t.


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


More information about the klone-users mailing list