[botan-devel] Runtime error R6034

Jack Lloyd lloyd at randombit.net
Fri Mar 18 14:26:43 EDT 2011


Hi Erwan,

There could be a few different reasons for this.

First, it seems like the C++ runtime changes incompatibly between
versions of Visual C++. The binaries were built with VC2008, and may
well not be compatible with 2010. This is specifically related to the
use of a shared C++ runtime in the DLL, which (as far as I know) is
the best option available for distributed DLLs. I could be wrong
though, I'm definitely not a Windows expert, but in any case that's
how the current binaries were built.

Also, it's my understanding that PDB files are related to debugging
symbols, which makes me suspect you are trying to compile a debug
application. The C++ runtimes for debug versus not debug mode are
_also_ incompatible, even in the same version. That is, a DLL compiled
for debug by VC2008 will not be compatible with a non-debug
application by 2008.

I would suggest if you're using 2010 to compile botan from source, and
if you want to compile for debug to pass --enable-debug to
configure.py

Hope this helps, and feel free to ask for help if you run into any
problems compiling from source.

-Jack

On Fri, Mar 18, 2011 at 07:07:57PM +0100, Erwan Treguer wrote:
> Hello,
> 
> I installed botan 1.8.11 on my computer using the windows DLL installer
> 32bits.
> I created a solution in visual studio 2010 with the encrypt.cpp found in the
> doc/exemples directory.
> I made the link with the botan.lib and the include directory.
> 
> when i try to compile and launch the program i have no errors and no warning
> during the compilation but i got this output:
> 
> 'test encrypt.exe': Loaded 'C:\Users\ERWAN\Documents\Visual Studio
> 2010\Projects\test encrypt\Debug\test encrypt.exe', Symbols loaded.
> 'test encrypt.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find
> or open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find
> or open the PDB file
> 'test encrypt.exe': Loaded 'C:\Users\ERWAN\Documents\Visual Studio
> 2010\Projects\test encrypt\Debug\botan.dll', Binary was not built with debug
> information.
> 'test encrypt.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find
> or open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\msvcp90.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\msvcr90.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols
> loaded.
> 'test encrypt.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols
> loaded.
> 'test encrypt.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Program
> Files\Logitech\SetPoint\lgscroll.dll', Cannot find or open the PDB file
> 'test encrypt.exe': Loaded
> 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcr80.dll',
> Cannot find or open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\ntmarta.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\Wldap32.dll', Cannot find or
> open the PDB file
> 'test encrypt.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or
> open the PDB file
> The program '[1320] test encrypt.exe: Native' has exited with code
> -1073741502 (0xc0000142).
> 
> 
> Then I got a runtime error R6034
> An application has made an attempt to load the C runtime library
> incorrectly.
> Please contact the application's support team
> 
> -- 
> Erwan Treguer

> _______________________________________________
> 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