This is the mail archive of the mailing list for the pthreas-win32 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Mingw-users] mingw32 DLLs, threads and exceptions HOWTO

Hello Thomas,

Thomas Pfaff <> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]