Bug 965 - Problem building /src/core/callback.cc
Problem building /src/core/callback.cc
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P5 normal
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-24 05:14 UTC by jframos45
Modified: 2010-07-24 12:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jframos45 2010-07-24 05:14:59 UTC
The callback.cc file have next structure:

namespace ns3
{
    ...
    #include <cxxabi.h>
    ...
}

With GCC 4.3.3, 4.4.0 and 4.4.4, there are a problem in the building:

In file included from ../src/core/callback.cc:41:
/bin/gcc/gcc-4.3.3/lib/gcc/ia64-suse-linux/4.3.3/../../../../include/c++/4.3.3/cxxabi.h:68: error: typedef 'ns3::__cxxabiv1::__cxa_cdtor_return_type' is initialized (use __typeof__ instead)
/bin/gcc/gcc-4.3.3/lib/gcc/ia64-suse-linux/4.3.3/../../../../include/c++/4.3.3/cxxabi.h:68: error: '__cxa_cdtor_type' was not declared in this scope

The solution is:

#include <cxxabi.h>
namespace ns3
{
    ...
}

I think.
Comment 1 Mathieu Lacage 2010-07-24 12:19:28 UTC
b0f9d1408e41

thanks a lot