[Botan-devel] Help with Windows build
Brought to you by:
randombit
|
From: Jeff B <je...@ho...> - 2003-06-05 19:09:48
|
I'm trying to get the 1.2.4 build to compile with Visual Studio .NET 2003 (ver 7) and I'm having a bit of trouble. Here's what I've done so far: 1. D/l 1.2.4 source (http://prdownloads.sourceforge.net/opencl/Botan-1.2.4.tgz) and unzipped 2. Ran configure.pl (I believe I used "perl configure.pl msvc-windows-i486") 3. ran VS, created a Visual C++ Win32 console application 4. added the contents of Botan's SRC directory to the new project 5. Went into the project's settings and a) Turned off using precompiled headers b) Added the Botan\include path to the "include additional directories" setting. 6. Rebuilt my test project OK, first issue: There are a _LOT_ of compile warnings. One of the warnings, C4290, found in base.h, line 42, void set_key(const byte[], u32bit) throw(Invalid_Key_Length); is about exception specification being ignored. Doing a search on C4290 in VS, I found "Handling Exceptions, part 6" in Deep C++, which goes on to say that VS ignores the exception specification at run time. Lovely, I thought VS .NET 2003 was supposed to bring conformance to ANSI C++. Is this warning a known issue or is my configure.pl settings wrong, or do I need to set any additional parameters in the project? I can just silence the warning, but it seems dangerous. OK, so much for the warnings. Moving on... 7. At the end of the build, I get 3 errors pertaining to get_ciph.cpp, line 87, which is Keyed_Filter* get_cipher(const std::string& algo_spec, Cipher_Dir direction) { struct Invalid_Combination : public Exception { Invalid_Combination(const std::string& mode, const std::string& pad) : Exception("Invalid mode/padding pair: " + mode + "/" + pad) {} }; The compiler doesn't like Exception("Invalid mode/padding pair: " + mode + "/" + pad) Are these known issues? Are my configure options correct? TIA, Jeff _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |