[ace-users] Note for mingw32 compiling

Johnny Willemsen jwillemsen at remedy.nl
Sat Jun 30 01:01:03 CDT 2007

Must that DLL always linked into the app?


From: Wang Yiping [mailto:ypwangandy at gmail.com] 
Sent: Saturday, June 30, 2007 12:32 AM
To: Johnny Willemsen
Cc: ace-users at cse.wustl.edu
Subject: Re: Note for mingw32 compiling

Hi, Johnny

The second one is not fix just a note. Because after I finished compiling on
mingw32 I just happened to see that the ace.dll depends on that specified
dll provided by mingw. If you want to put it somewhere I think the compiling
Readme for mingw (if have) is the best place. 


On 6/29/07, Johnny Willemsen <jwillemsen at remedy.nl> wrote: 


I have added the change to platform_mingw32.GNU, not sure what todo with
your second remark.


Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands 
www.theaceorb.nl / www.remedy.nl

*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl  <http://scoreboard.theaceorb.nl> ***
*** Commercial service and support for ACE/TAO/CIAO             ***
*** See http://www.theaceorb.nl/en/support.html                 ***

"andy" < ypwangandy at gmail.com> wrote in message
news:<1183082411.763690.17190 at n60g2000hse.googlegroups.com >...
> Hi, All
> Here are some notes for compiling on Mingw32.
> 1. mingw+SSL
> usually the openssl compiled on mingw32 is libssl32.a(libssl32.dll)
> and libeay32.a(libeay32.dll ) so it is better to use these. Do the
> changing below.
> $ACE_ROOT/include/makeinclude/platform_mingw32.GNU
> +PLATFORM_SSL_LIBS = -lssl32 -leay32
> actually you can still use libssl.a and libcrypto.a (which are static
> library) but you need to add "-lgdi32" in order to make linker happy
> since the crypto/rand/rand_win.c uses CreateDC and related stuff.
> 2. libACE.dll needs mingwm10.dll
> >From Mingw mthr.c::__mingwthr_key_dtor
>  *  - gcc uses -mthreads option
>  *  - user code uses C++ exceptions
>  *
>  * The sole job of the Mingw thread support DLL (MingwThr) is to 
> catch
>  * all the dying threads and clean up the data allocated in the TLSs
>  * for exception contexts during C++ EH. Posix threads have key
> dtors,
>  * but win32 TLS keys do not, hence the magic. Without this, there's 
> at
>  * least `6 * sizeof (void*)' bytes leaks for each catch/throw in each
>  * thread. The only public interface is __mingwthr_key_dtor().
>  *
>  * Created by Mumit Khan  <  <mailto:khan at nanotech.wisc.edu>
khan at nanotech.wisc.edu>
> Enjoy!
> Andy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20070630/c3edc3cb/attachment-0001.htm

More information about the Ace-users mailing list