Boost logo

Boost Users :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2005-01-05 10:40:39

On Wed, 05 Jan 2005 11:04:47 +0000, Chris Coleman <cqc_at_[hidden]> wrote:
> The result below is repeated many many times about various files:
> /opt/sfw/gcc-3.2/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT
> -c -o zz_broker.o `test -f zz_broker.cpp || echo './'`zz_broker.cpp
> In file included from /opt/sfw/gcc-3.2/include/c++/3.2/utility:66,
> from
> /staff/cqc/include/boost/config/select_stdlib_config.hpp:20,
> from /staff/cqc/include/boost/config.hpp:40,
> from /staff/cqc/include/boost/smart_ptr.hpp:14,
> from zz_broker.h:28,
> from zz_broker.cpp:24:
> /opt/sfw/gcc-3.2/include/c++/3.2/bits/stl_relops.h:91: template with C
> linkage

Do you perhaps have extern "C" block still open before you include
<boost/smart_ptr.hpp>? I get identical errors compiling the following
test program:

extern "C" {
#include <boost/shared_ptr.hpp>

Caleb Epstein
caleb dot epstein at gmail dot com

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at