[botan-devel] Error compiling on Windows

Jack Lloyd lloyd at randombit.net
Wed Nov 21 16:30:17 EST 2012


I don't have 2012 installed so I cannot test this, but my
understanding is if you change make_pair to pair in these two lines
the compiler will accept it. Please let me know if this works, if so
I'll patch that for the next release.

-Jack

On Tue, Nov 20, 2012 at 03:07:34PM +0100, Tim Kettler wrote:
> 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
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list