Bug 965

Summary: Problem building /src/core/callback.cc
Product: ns-3 Reporter: jframos45
Component: coreAssignee: Mathieu Lacage <mathieu.lacage>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

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