Boost logo

Boost-Build :

Subject: [Boost-build] Help! Building regex with win32 and gcc
From: B (jimmybupt_at_[hidden])
Date: 2009-04-10 08:51:31

Hello everyone. I'm a amateur programmer and I want to use regular
expression utility in my program.
However I met several problems that I can't figure them out.

I'm using a x86 computer with WindowsXP and Dev-c++ IDE.
At first I build a "a" file using command "make -fgcc.mak" and linked it
from my program.
It works well.

After that, I still need the "wregex" class to handle some wide characters.
However, the compiler
prompted me that "wregex is not a member of boost".

So, I read the config.hpp in regex directory and inserted "#define
since Dev_c++ does provide a native wchar_t type. But that makes no

Than I manually undefined the "BOOST_NO_WREGEX" in the header. This change
makes compiler
no longer returning "no such member", but the linker failed.
The linker returned:
  [Linker error] undefined reference to `boost::basic_regex<wchar_t,
boost::regex_traits<wchar_t, boo
st::cpp_regex_traits<wchar_t> > >::do_assign(wchar_t const*, wchar_t const*,
unsigned int)'

According to documents, it is said that the lib file won't support Unicode
if I do not provide path of
"ICU" to the make file. However, I have no idea of what ICU is and I don't
think I really need some kind
of "ICU" since I want wregex instead of u32regex.

So, could anyone help me with this issue to enable me
using :"wregex"
on: Win32 + dev-cpp IDE platform
to handle: string of native type "wchar_t" (which is a short int)
by: correctly building: the regex binaries

Thanks a lot!


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at