C++ compiler crashed
In file included from /usr/include/c++/4.6/ostream:588:0,
from /usr/include/c++/4.6/iostream:40,
from /opt/ros/fuerte/include/ros/time.h:54,
from /opt/ros/fuerte/include/ros/ros.h:38,
from /home/weiyang/fuerte_workspace/sandbox/flight/src/qnode.cpp:13:
/usr/include/c++/4.6/bits/ostream.tcc:150:1: error: missing terminating " character
In file included from /usr/include/c++/4.6/ostream:588:0,
from /usr/include/c++/4.6/iostream:40,
from /opt/ros/fuerte/include/ros/time.h:54,
from /opt/ros/fuerte/include/ros/ros.h:38,
from /home/weiyang/fuerte_workspace/sandbox/flight/src/qnode.cpp:13:
/usr/include/c++/4.6/bits/ostream.tcc:151:9: error: template declaration of ‘std::basic_ostream<_CharT, _Traits>& std::put’
/usr/include/c++/4.6/bits/ostream.tcc:151:9: error: ‘char_type’ was not declared in this scope
For some reason, the error above happened, and I try to solve by editing this line
/usr/include/c++/4.6/bits/ostream.tcc:150:1:
and after I tried to make my package again and these happen.
c++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[3]: *** [CMakeFiles/flight.dir/src/qnode.o] Error 4
make[3]: Leaving directory `/home/weiyang/fuerte_workspace/sandbox/flight/build'
make[2]: *** [CMakeFiles/flight.dir/all] Error 2
make[2]: Leaving directory `/home/weiyang/fuerte_workspace/sandbox/flight/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/weiyang/fuerte_workspace/sandbox/flight/build'
make: *** [all] Error 2
Anyone encounter this before? I've tried to google and some people explains this as a compiler crash. The solution is to get a new compiler which I don't really understand how. Please help thanks.
qnode.cpp I believe that should be nothing wrong because I was just editing a small part of the code.
/**
* @file /include/flight/qnode.hpp
*
* @brief Communications central!
*
* @date February 2011
**/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef flight_QNODE_HPP_
#define flight_QNODE_HPP_
/*****************************************************************************
** Includes
*****************************************************************************/
#include <ros/ros.h>
#include <string>
#include <QThread>
#include "../../flightPanel/msg_gen/cpp/include/flightPanel/flightCommand.h"
#include "../../px-ros-pkg/px_comm/msg_gen/cpp/include/px_comm/OpticalFlow.h"
#include "geometry_msgs/Pose2D.h"
#include "flight/flightFeedback.h"
#include "AltitudeControl.hpp"
#include "RollControl.hpp"
#include "PitchControl.hpp"
#include "YawControl.hpp"
#include "Timer.hpp"
#include "Serial.hpp"
#include "state.hpp"
#include <sensor_msgs/Image.h>
/*****************************************************************************
** Namespaces
*****************************************************************************/
namespace flight {
/*****************************************************************************
** Class
*****************************************************************************/
class QNode : public QThread {
Q_OBJECT
public:
QNode( int argc, char** argv );
virtual ~QNode();
bool init();
bool init( const std::string &master_url, const std::string &host_url );
void run();
float rcAmplitude;
signals:
void rosShutdown();
private:
int init_argc;
char** init_argv;
ros::Publisher chatter_publisher;
ros::Subscriber commandMsg;
ros::Subscriber opticalFlowMsg;
ros::Subscriber depthMsg;
ros::Subscriber geometryMsg;
flight::flightFeedback feedbackMsg;
void parseCommand( const flightPanel::flightCommand::ConstPtr& msg );
int parseInt( const flightPanel::flightCommand::ConstPtr& msg, int i );
float parseFloat( const flightPanel::flightCommand::ConstPtr& msg, int i );
void parseOpticalFlow( const px_comm::OpticalFlow::ConstPtr& msg );
void parseDepth( const sensor_msgs::Image ...