Minor compilation bug in iCub svn

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Minor compilation bug in iCub svn

Fabien Benureau
Hi,

While compiling the lastest revision (13024) of the iCub svn on Ubuntu 11.04, this error showed up :
Scanning dependencies of target iCub_SIM
[ 63%] Building CXX object src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/EyeLidsController.cpp.o
[ 63%] Building CXX object src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/main.cpp.o
[ 64%] Building CXX object src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/SimulatorModule.cpp.o
[ 64%] Building CXX object src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/SimulationRun.cpp.o
[ 64%] Building CXX object src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/RobotConfig.cpp.o
/home/fabin/Documents/research/external/sources/iCub/main/src/simulators/iCubSimulation/wrapper/RobotConfig.cpp: In member function ‘void RobotConfig::stopConfig(yarp::os::ConstString)’:
/home/fabin/Documents/research/external/sources/iCub/main/src/simulators/iCubSimulation/wrapper/RobotConfig.cpp:156:8: error: ‘exit’ was not declared in this scope
make[2]: *** [src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/RobotConfig.cpp.o] Error 1
make[1]: *** [src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/all] Error 2
make: *** [all] Error 2
It is easily fixed by adding
#include <cstdlib>
to RobotConfig.cpp. On most configurations, this omission will not create an error, but it seems that gcc is becoming more strict on those things in its latest versions (I am using gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2).

I don't have commit rights to do the modification myself.

Have a great day all,
Fabien
Reply | Threaded
Open this post in threaded view
|

Re: Minor compilation bug in iCub svn

Vadim Tikhanoff-2
Hi Fabien,

sorry, my fault. Thanks for pointing it out.
Best
Vadim
-------------------------------
Vadim Tikhanoff, PhD
Postdoctoral Researcher
Robotics Brain & Cognitive Science Dept.
Italian Institute of Technology
[hidden email]
via Morego, 30 16163 Genova
www.iit.it
________________________________________
From: Fabien Benureau [[hidden email]]
Sent: Thursday, August 04, 2011 12:44 AM
To: [hidden email]
Subject: [rc-hackers] Minor compilation bug in iCub svn

Hi,

While compiling the lastest revision (13024) of the iCub svn on Ubuntu
11.04, this error showed up :

Scanning dependencies of target iCub_SIM
[ 63%] Building CXX object
src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/EyeLidsController.cpp.o
[ 63%] Building CXX object
src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/main.cpp.o
[ 64%] Building CXX object
src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/SimulatorModule.cpp.o
[ 64%] Building CXX object
src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/SimulationRun.cpp.o
[ 64%] Building CXX object
src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/RobotConfig.cpp.o
/home/fabin/Documents/research/external/sources/iCub/main/src/simulators/iCubSimulation/wrapper/RobotConfig.cpp:
In member function ‘void RobotConfig::stopConfig(yarp::os::ConstString)’:
/home/fabin/Documents/research/external/sources/iCub/main/src/simulators/iCubSimulation/wrapper/RobotConfig.cpp:156:8:
error: ‘exit’ was not declared in this scope
make[2]: ***
[src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/wrapper/RobotConfig.cpp.o]
Error 1
make[1]: *** [src/simulators/iCubSimulation/CMakeFiles/iCub_SIM.dir/all]
Error 2
make: *** [all] Error 2

It is easily fixed by adding

#include <cstdlib>

to RobotConfig.cpp. On most configurations, this omission will not create an
error, but it seems that gcc is becoming more strict on those things in its
latest versions (I am using gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2).

I don't have commit rights to do the modification myself.

Have a great day all,
Fabien

--
View this message in context: http://robotcub-hackers.2198711.n2.nabble.com/Minor-compilation-bug-in-iCub-svn-tp6650628p6650628.html
Sent from the RobotCub Hackers mailing list archive at Nabble.com.

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Robotcub-hackers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/robotcub-hackers

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Robotcub-hackers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/robotcub-hackers