From: Emre Turkay (emreturkay_at_[hidden])
Date: 2008-02-06 02:22:42
I don't have a Visual C compiler around but the link error you got is
probably not related with the grep filter.
For the run time bug, one of my friends had the same experience and we have
found out that visual c cannot handle iterators of the empty strings. So I
made a workaround for it, I don't know if it works, since I couldn't try it
with VC yet.
Can you download, give it a try and let me know if it works for you?
On Feb 5, 2008 8:47 PM, Paul A Bristow <pbristow_at_[hidden]> wrote:
> >-----Original Message-----
> >From: boost-bounces_at_[hidden]
> >[mailto:boost-bounces_at_[hidden]] On Behalf Of Emre Turkay
> >Sent: 04 February 2008 12:36
> >To: boost_at_[hidden]
> >Cc: Turker Keskinpala
> >Subject: [boost] A grep like boost::iostreams filter.
> >Hi folks,
> >I tried to use the regex_filter for grep like functionality,
> >but I think it
> >doesn't work like that. So, here goes a grep_filter and a driver main()
> >function as an example. It is an input filter which returns only the
> >matching lines of the given regex.
> >I think it can be used by others, too. Is it possible to put
> >this class into distribution, as an example maybe?
> This looks rather useful (and even more using your later refinement) but
> with a brief attempt, I've failed to get this to work.
> with MSVC 8.0 debug I get linking against
> (built using a recent library build from trunk).
> demo_grep.obj : error LNK2019: unresolved external symbol "public: void
> __thiscall boost::re_detail::raw_storage::resize(unsigned
> int)" (?resize_at_raw_storage_at_re_detail_at_boost@@QAEXI_at_Z) referenced in
> function "public: void * __thiscall
> boost::re_detail::raw_storage::extend(unsigned int)" (?extend@
> demo_grep.obj : error LNK2019: unresolved external symbol "public: void *
> __thiscall boost::re_detail::raw_storage::insert(unsigned
> int,unsigned int)" (?insert_at_raw_storage_at_re_detail_at_boost@@QAEPAXII_at_Z)
> referenced in function "public: struct
> boost::re_detail::re_syntax_base * __thiscall
> boost::cpp_regex_traits<char> > >::insert_state(int,enum
> boost::re_detail::syntax_element_type,unsigned int)"
> J:\Cpp\Misc\Debug\grep.exe : fatal error LNK1120: 2 unresolved externals
> In release mode, it compiles and links, but promptly crashes :-(
> Suggestions what I am doing wrong?
> Paul A Bristow
> Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
> +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk