Boost logo

Boost :

From: Ross Smith (ross.s_at_[hidden])
Date: 2001-05-20 23:23:07


I've been trying the boost::regex library with the various compilers I
use. It works fine with Cygwin's GCC 2.95.3, but with VC6 I can't get it
to compile:

D:\cplusplus\libraries\boost_1_21_2\libs\regex\build>nmake -f vc6.mak

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        if not exist "vc6\" mkdir vc6
        if not exist "vc6\vc6-re300\" mkdir vc6\vc6-re300
        cl /c /nologo /ML /W3 /GX /Oityb1 /GF /Gy /I..\..\..\ /DWIN32
/DNDEBUG /D_MBCS /D_LIB /YX /FD -Fpvc6/vc6-re300
/vc6-re300.pch -Fo./vc6/vc6-re300/ -Fdvc6/vc6-re300.pdb
../src/c_regex_traits.cpp
c_regex_traits.cpp
..\..\..\boost/regex/detail/regex_config.hpp(844) : error C2535:
'__thiscall boost::re_detail::re_alloc_binder<U,`templa
te-parameter258'>::boost::re_detail::re_alloc_binder<U,`template-parameter258'>(const
class boost::re_detail::re_alloc_b
inder<U,`template-parameter258'> &)' : member function already defined
or declared
        ..\..\..\boost/regex/detail/regex_config.hpp(820) : see
declaration of 're_alloc_binder<T,Allocator>::re_alloc_b
inder<T,Allocator>'
        ..\..\..\boost/regex/detail/regex_config.hpp(849) : see
reference to class template instantiation 'boost::re_det
ail::re_alloc_binder<T,Allocator>' being compiled
..\..\..\boost/regex/detail/regex_synch.hpp(37) : fatal error C1083:
Cannot open include file: 'pthread.h': No such file
 or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

D:\cplusplus\libraries\boost_1_21_2\libs\regex\build>

Have I done something wrong, or does the current version not work with
MSVC? (Compiler is VC6 with the latest service pack (I forget what
number that was); operating system is NT4+sp6a.)

I searched the list archives and found the "VC6 strikes again" thread
from March, but this seems to be a different error.

-- 
Ross Smith <ross.s_at_[hidden]> The Internet Group, Auckland, New Zealand
========================================================================
        "Hungarian notation is the tactical nuclear weapon of
         source code obfuscation techniques." -- Roedy Green

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk