Boost 1.37.0 and Borland C++ Builder 5 (compiler version 5.5/5.5.1)

Hello, I'm upgrading project which was originally developed using Borland C++ Builder 5. I need to do some parsing, so I thought I'd use Boost Regex. However, building regex with Borland C++ 5.5 (and 5.5.1) is an issue. There is no bcb5.mak included, so I use bjam: C:\boost_1_37_0\libs\regex\bjam --toolset=borland-5.5 (I tried --toolset=borland also) When I hit enter the only things I get are compiler errors... borland.compile.c++ ..\..\..\bin.v2\libs\regex\build\borland-5.5.1\debug\posix_a pi.obj ..\..\..\libs\regex\src\..\src\posix_api.cpp: Error E2404 ..\..\..\boost/regex/v4/basic_regex.hpp 195: Dependent type qualifie r 'c_regex_traits<char>' has no member type named 'string_type' in function __st dcall regcompA(regex_tA *,const char *,int) (...) Error E2228 ..\..\..\boost/regex/v4/basic_regex.hpp 346: Too many error or warni ng messages in function __stdcall regcompA(regex_tA *,const char *,int) *** 6 errors in Compile *** "bcc32.exe" -j5 -g255 -q -c -P -Ve -Vx -a8 -b- -v -Od -tWC -tWR -tWC -tWD -W M- -DBOOST_ALL_NO_LIB=1 -DBOOST_REGEX_DYN_LINK=1 -I"..\..\.." -I"C:\Program File s\Borland\CBuilder5/include/" -o"..\..\..\bin.v2\libs\regex\build\borland-5.5.1\ debug\posix_api.obj" "..\..\..\libs\regex\src\..\src\posix_api.cpp" Is there anybody who forced BCC 5.5/5.5.1 to play with Boost/Regex? Thanks, Marcin

Marcin Kurek wrote:
Hello,
I'm upgrading project which was originally developed using Borland C++ Builder 5. I need to do some parsing, so I thought I'd use Boost Regex. However, building regex with Borland C++ 5.5 (and 5.5.1) is an issue. There is no bcb5.mak included, so I use bjam: C:\boost_1_37_0\libs\regex\bjam --toolset=borland-5.5 (I tried --toolset=borland also) When I hit enter the only things I get are compiler errors...
I don't think you're going to have much luck using Boost 1.37 with such an old compiler. If what you need is Boost.Regex, why don't you try an old release? I'd go for 1.32 or older if I were you. Also, be sure to follow your release's instructions about configuring your toolset. Cheers, Nicola -- Nicola.Musatti <at> gmail <dot> com Home: http://nicola.musatti.googlepages.com/home Blog: http://wthwdik.wordpress.com/
participants (2)
-
Marcin Kurek
-
Nicola Musatti