[Botan-devel] Catching 'Botan::Decoding_Error'

Gregor Schraegle gregor.schraegle at gmx.de
Wed Nov 17 07:35:57 EST 2010


Hi Jack,

I am trying to compile the Botan DLL using a newer GCC compiler
(gcc version 4.5.0 (GCC)), and linking with -shared-libgcc

Currently I am experiencing the following error during linking:

c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../libmingw32.a(main.o):main.c:(.text+0xd2): 
undefined reference to `WinMain at 16'

Could you tell me, what I am missing or doing wrong during the 
compile/linking process?

Thank you very much!
Best regards,
Gregor

>             
> -------- Original-Nachricht --------
> Datum: Tue, 16 Nov 2010 10:17:24 -0500
> Von: Jack Lloyd <lloyd at randombit.net>
> An: botan-devel at randombit.net
> Betreff: Re: [Botan-devel] Catching 'Botan::Decoding_Error'
> 
>             
> 
> Hi Gregor,
> 
> > 2. I linked the libbotan-1.8.11.dll to may main routine (C++) 
> > That means I am not using the libbotan.a static library but the dynamic 
> > libbotan-1.8.11.dll
> 
> This does not work unless you are using the latest version of GCC on
> MinGW. From the release notes for 4.4 in MinGW:
> 
>     * Shared libgcc: If all modules are linked with -shared-libgcc, 
> exceptions can be thrown across DLL boundaries. 
> 
> (http://www.mingw.org/wiki/GCCStatus)
> 
> I knew this was an issue in MinGW but you said .a in your
> original post so I assumed you were using a purely static
> library.
> 
> -Jack
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel
> 
        
-- 
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20101117/0b74900c/attachment.html>


More information about the botan-devel mailing list