Op 26 dec. 2012 21:37 schreef "Martin Mitáš" <[email protected]> het volgende:
>
>
> >
> > Every C++ and some C applications will implicitly depend on the
> > libwinpthread dll. Don't worry, it won't eat your computer. One more
> > DLL won't kill you.
>
> Is it just for some transitional phase, or the new way from now forever
> (or until you decide to add yet another DLL depenencies)?

Perhaps I might have forgotten to mention this is an *experimental* build.
It allows you to use libstdc++'s multithreading capabilities. The plan is
to add winpthreads to the MinGW-w64 crt, if it will be in dll form or not
is unknown right now. It is not compulsory to use the posix GCC, and won't
be in any near future I see.

>
> My project (http://mctrl.sf.net) is a general purpose SDK, and I really
> do not
> want ask applications to bother about other DLLs. Currently there is no
> dependency except system DLLs (MSVCRT.DLL & al.).

If you're building with GCC you already depend on the libgcc dll, unless
you link statically, in which case the winpthreads library will also be
linked statically.

>
> I do not understand why every C application should depend on it even
> though it does not use posix threads at all (including the C++ <thread>
> machinery). I strictly play within Win32API boundaries.

The reason lies deep within GCC's internals: the compiler produces code
which calls internal functions which are implemented in libgcc. If GCC is
built with posix threads on Windows, libgcc might (there was a report that
this was true, I don't remember all the details at this time, and you could
easily check this yourself in the specific case of your library) depend on
winpthreads.

Anyway, the eventual dependency is part of the toolchain, so anyone who
uses your library should have access to the same compiler anyways. I know
it's not a win-win. I can't change the reality of things, especially the
Unix-centricity of the GCC implementation (or that of any major open source
project). Unfortunately, a decent C++11 multithreading implementation will
require Windows Vista, and the Windows GCC developers have not decided to
drop XP compatibility.

Ruben

>
> Martin
>
>
------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to