[Botan-devel] Problem about building and using Botan libray on Windows

Jie Jiang jjinfo at nudt.edu.cn
Thu Apr 22 11:26:22 EDT 2010


Hi Jack,

I'm trying to build Windows version of ne7ssh-1.3.2 library with VC2005.
The underlying Botan library is 1.9.3.
The Botan library is built as DLL, and ne7ssh has also been successfully
built as DLL.
However, when running the "sftpExample.cpp" application included in
ne7ssh package, when running this application, I got the following error
messages:

Unhandled exception at 0x00e8b197 in xxx.exe: 0xC0000005:
Access vialation reading location 0x10430000.

After tracing the source code, I found that this exception was caused by
the statement "new LibraryInitializer("thread-safe")", called by
ne7ssh::ne7ssh() constructor in ne7ssh.cpp.

It seems there is something wrong with the Windows version of
Botan::LibraryInitialzer(). The Linux version works very well.

Any idea?

By the way, when I tried to build Botan-1.9.4, 1.9.5 and 1.9.6 with the
cl.exe in VC2005, the building process failed with this error message:

.\src\ssl\tls_client.cpp(30) : error C2326:
'Botan::`anonymous-namespace'::client_check_state::State_Transition_Error::client_check_state::State_Transition_Error(const std::string &)' : function cannot access 'Botan::operator +'NMAKE :fatal  error U1077: '"E:\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0x2'


How to fix it? Should I update to VC2008?

Regards,
Jie Jiang
 






More information about the botan-devel mailing list