[gccsdk] Problems running C++ programs compiled with GCC4

Peter Naulls peter at chocky.org
Tue Aug 5 12:57:05 PDT 2008

John Tytgat wrote:
> In message <4897534A.8050507 at sky.com>

> If it works, it will be simplier than what you have but at the expense
> that all those pthread routines will be put in static programs, even if
> they are not C++ programs.  Creating an extra library (libpthread.a) which
> needs to get in the linker line feels a bit as overkill.

We do this anyway, to fool autoconf, and other build systems in certain
cases.  But the problem here is that is isn't always used, so this
solution won't be reliable unless it is forced into the linker command
line or something.  I think your solution is better.

More information about the gcc mailing list