[Botan-devel] Re: botan-devel Digest, Vol 34, Issue 4

Yan Shpilsky yshpilsk at stevens.edu
Sun Oct 21 00:00:46 EDT 2007


Hi Jack,
I resolved the issue, it was my own fault.
I did some research on the error and re-read the Botan API doc.
The error I had received was just MSVC's way of saying that an 
unhandled exception was thrown, and it happened because I had not 
included the necessary modules.
After re-building Botan with the win32 module set, I had some linker 
errors when trying to build the program (unresolved external symbol for 
some of the Windows functions), so I had to include two additional 
libraries for the static build.
If anyone else runs into this problem, I did the following:

perl configure.pl mvsc-generic-generic --module-set=win32
nmake
cl getCred_2.cpp /EHsc /link libbotan.lib user32.lib advapi32.lib

Thanks again for the help.
Yan


botan-devel-request at randombit.net wrote:


>Send botan-devel mailing list submissions to
>	botan-devel at randombit.net
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://www.randombit.net/mailman/listinfo/botan-devel
>or, via email, send a message with subject or body 'help' to
>	botan-devel-request at randombit.net
>
>You can reach the person managing the list at
>	botan-devel-owner at randombit.net
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of botan-devel digest..."
>
>
>Today's Topics:
>
>   1. LibraryInitializer problem in Win32 (Yan Shpilsky)
>   2. Re: LibraryInitializer problem in Win32 (Jack Lloyd)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 20 Oct 2007 10:31:33 -0400 (EDT)
>From: Yan Shpilsky <yshpilsk at stevens.edu>
>Subject: [Botan-devel] LibraryInitializer problem in Win32
>To: botan-devel at randombit.net
>Message-ID: <4167991.1192890693832.JavaMail.yshpilsk at stevens.edu>
>Content-Type: text/plain; charset=UTF-8
>
>Hello,
>
>Thanks again to Jack Lloyd for providing a working patch for the Sun 
>compiler build.
>
>The application I was working on executes perfectly on Solaris and 
>Linux using SUNWspro and g++, respectively. Now that I am porting it to 
>Windows, however, I am having problems executing the same Botan code.
>
>I compiled the Windows version using Visual C++ 8, and the build had no 
>issues. The program seems to execute exactly in the same way as it did 
>in the POSIX platforms, but as soon as it reaches the Botan library 
>initializer, I receive a strange message during runtime:
>
>This application has requested the Runtime to terminate it in an 
>unusual way.
>Please contact the application's support team for more information.
>
>I have noted that this occurs on the line:
>LibraryInitializer init;
>
>I have also tried Botan::LibraryInitializer init; and have had the same 
>result.
>
>Has anyone experienced this issue before when using Visual C++? I have 
>looked around for causes of this, and this message seems to be a known 
>occurrence when using various versions of Visual C++.
>I have tried the several solutions I have found that others have noted 
>including uninstalling Google Toolbar and applying the appropriate 
>Microsoft hotfix (support.microsoft.com/kb/884538).
>Nothing seems to be changing.
>
>I'm sure it's something simple, or maybe something that I overlooked, 
>but if I can't fix this issue I may have to resort to an unsupported 
>compiler and try my luck.
>
>Any help is appreciated.
>Regards,
>Yan
>
>
>------------------------------
>
>Message: 2
>Date: Sat, 20 Oct 2007 11:26:46 -0400
>From: Jack Lloyd <lloyd at randombit.net>
>Subject: Re: [Botan-devel] LibraryInitializer problem in Win32
>To: Botan development list <botan-devel at randombit.net>
>Message-ID: <20071020152646.GB19584 at randombit.net>
>Content-Type: text/plain; charset=us-ascii
>
>Yan,
>
>To be honest I have never seen this error either with Botan or any
>other VC compiled program so I'm somewhat in the dark. But:
>
> - How did you compile Botan w VC8? ./configure.pl && nmake, or
>   through a workspace.
> - What options did you pass to configure.pl if any?
> - Did you compile the test application? Did it run OK?
> - Can you get a backtrace or anything via a debugger?
> - What OS? Vista? XP? This may be important.
>
>-Jack
>
>On Sat, Oct 20, 2007 at 10:31:33AM -0400, Yan Shpilsky wrote:
>> Hello,
>> 
>> Thanks again to Jack Lloyd for providing a working patch for the Sun 
>> compiler build.
>> 
>> The application I was working on executes perfectly on Solaris and 
>> Linux using SUNWspro and g++, respectively. Now that I am porting it 
to 
>> Windows, however, I am having problems executing the same Botan code.
>> 
>> I compiled the Windows version using Visual C++ 8, and the build had 
no 
>> issues. The program seems to execute exactly in the same way as it did 
>> in the POSIX platforms, but as soon as it reaches the Botan library 
>> initializer, I receive a strange message during runtime:
>> 
>> This application has requested the Runtime to terminate it in an 
>> unusual way.
>> Please contact the application's support team for more information.
>> 
>> I have noted that this occurs on the line:
>> LibraryInitializer init;
>> 
>> I have also tried Botan::LibraryInitializer init; and have had the 
same 
>> result.
>> 
>> Has anyone experienced this issue before when using Visual C++? I have 
>> looked around for causes of this, and this message seems to be a known 
>> occurrence when using various versions of Visual C++.
>> I have tried the several solutions I have found that others have noted 
>> including uninstalling Google Toolbar and applying the appropriate 
>> Microsoft hotfix (support.microsoft.com/kb/884538).
>> Nothing seems to be changing.
>> 
>> I'm sure it's something simple, or maybe something that I overlooked, 
>> but if I can't fix this issue I may have to resort to an unsupported 
>> compiler and try my luck.
>> 
>> Any help is appreciated.
>> Regards,
>> Yan
>> _______________________________________________
>> botan-devel mailing list
>> botan-devel at randombit.net
>> http://www.randombit.net/mailman/listinfo/botan-devel
>
>
>------------------------------
>
>_______________________________________________
>botan-devel mailing list
>botan-devel at randombit.net
>http://www.randombit.net/mailman/listinfo/botan-devel
>
>
>End of botan-devel Digest, Vol 34, Issue 4
>******************************************
>



More information about the botan-devel mailing list