[botan-devel] Error compiling on Windows

Tim Kettler tim.kettler at udo.edu
Tue Nov 20 09:07:34 EST 2012


Hi,

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:

         cl /MD /Ibuild\include /O2  /EHs /GR /W3 /wd4275 /wd4267 
/nologo /c C:\Develop\Botan-1.10.3\src\asn1\alg_id.cpp 
/Fobuild\lib\alg_id.obj
alg_id.cpp
C:\Develop\Botan-1.10.3\src\asn1\alg_id.cpp(48) : error C2664: 
'std::make_pair' : cannot convert parameter 1 from 'const Botan::byte 
[2]' to 'const unsigned char *&&'
         You cannot bind an lvalue to an rvalue reference
C:\Develop\Botan-1.10.3\src\asn1\alg_id.cpp(65) : error C2664: 
'std::make_pair' : cannot convert parameter 1 from 'const Botan::byte 
[2]' to 'const unsigned char *&&'
         You cannot bind an lvalue to an rvalue reference
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual 
Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

I pasted the complete build output for the 64Bit build including the 
configure run to pastebin: http://pastebin.com/41kuLBBz

Google  didn't find anything helpful. Help is appreciated.

-Tim



More information about the botan-devel mailing list