This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: [Mingw-users] mingw32 DLLs, threads and exceptions HOWTO
- To: "Thomas Pfaff" <tpfaff at gmx dot net>
- Subject: Re: [Mingw-users] mingw32 DLLs, threads and exceptions HOWTO
- From: Paul Sokolovsky <paul-ml at is dot lg dot ua>
- Date: Wed, 13 Dec 2000 23:26:58 +0300
- CC: <mingw-users at lists dot sourceforge dot net>, <pthreads-win32 at sources dot redhat dot com>
- References: <002c01c06036$827a7da0$69856286@pcs.ditec.de>
- Reply-To: Paul Sokolovsky <paul-ml at is dot lg dot ua>
Hello Thomas,
Thomas Pfaff <tpfaff@gmx.net> wrote on Thursday, December 07, 2000:
TP> It was Franco Bez that pointed me in the right direction, that is convert
TP> libgcc.a into a dll.
Can you point me to any normal GNU-based system which has shared
libgcc? If not, I don't think it's valid for win32 either.
TP> 1. Include the mingwm10.dll function into the gcc.dll to have only one dll
TP> left.
TP> 2. make -mthreads and -fnative-struct default compiler options.
TP> 3. convert libstdc++ to a dll by adding the declspec dllexport and dllimport
TP> to every class definition.
Alternative proposal:
1) Partition libgcc into C and C++ parts (consider generic exception
handling C++ burden).
2) Leave the former in peace, stuff the latter into libstdc++ along
the mingwm10 magic.
3) Convert it all to dll without unneeded (unless proven otherwise)
declspec magic.
Next gcc package alpha/beta will contain at least 3) (i.e. shared
libstdc++), of course if I won't find flaw with it, so far I didn't. I
don't use C++ exception currently, so I'm rather indifferent to 1) and
2), if you're interested, your help welcome. Ideally, it should be
shell script which will produce that libstdc++.dll from static libs
and/or their object.
TP> Regards,
TP> Thomas
--
Paul Sokolovsky, IT Specialist
http://www.brainbench.com/transcript.jsp?pid=11135