Boost logo

Boost :

Subject: Re: [boost] thread build on solaris
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-10-19 00:55:53


Edward Peschko wrote:

> H.J -
>
> hmm.
>
> That worked (thanks) but exactly why did it work? Shouldn't gcc be
> smart enough to realize that it is working either with a c++ file or
> linking to a c++ library?

It was working like this since forever. When you use g++, then various C++
standard libraries are linked in. Otherwise, they are not. I presume the
auto-detection is not done because linking is done by a separate tool, that
knows nothing about c++ runtime, and gcc itself cannot detect if c++ runtime
should be linked in, because it cannot look inside each library that is used,
directly or indirectly.

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk