[botan-devel] Error compiling on Windows

Tim Kettler tim.kettler at udo.edu
Tue Nov 20 18:04:17 EST 2012


Am 20.11.2012 21:29, schrieb Markus Wanner:
> Tim,
>
> On 11/20/2012 03:07 PM, Tim Kettler wrote:
>> I'm trying to build static Botan libraries on Windows using Visual
>> Studio 2012. However, both on 32Bit and 64Bit the compiler gives the
>> following error:
>
> MSVC isn't quite up to the latest standard (C++11). What compiler
> version are you trying? I've recently read something about a
> compiler-only upgrade...

Ok, I found the updated compiler. This upgrades the version of cl from 
17.00.50727.1 to 17.00.51025. The error message is more verbose now, but 
the error remains the same:

C:\Develop\Botan-1.10.3\src\asn1\alg_id.cpp(48) : error C2664: 
'std::pair<const unsigned char *,unsigned int> std::make_pair<
const Botan::byte*,size_t>(_Ty1 &&,_Ty2 &&)' : cannot convert parameter 
1 from 'const Botan::byte [2]' to 'const unsigned char *&&
'
         with
         [
             _Ty1=const Botan::byte *
,            _Ty2=size_t
         ]
         You cannot bind an lvalue to an rvalue reference

Thanks,

-Tim



More information about the botan-devel mailing list