benguin
April 17th, 2008, 06:52 PM
Hello,
I use (and maintain and write code for) a robot control software, writen entirely in C++. The code used to compile fine with g++4.1, under Gutsy Gibbon. I recently dist-upgraded too Hardy, and it switched to using g++4.2 as the default compiler. With that started zillions of error messages, all seem to be originating from the C++ standard headers. Here's an example:
In file included from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/ios:45,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from /home/junaed/work/C++/RoboDevel/RHex/include/behaviors/NMTune.hh:55,
from /home/junaed/work/C++/RoboDevel/RHex/include/behaviors/TuneMode.hh:66,
from supervisor.cc:26:
and one more:
/usr/include/c++/4.2/bits/stl_algobase.h: At global scope:
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected unqualified-id before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected initializer before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected unqualified-id before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected initializer before ‘const’
The source supervisor.cc at line 26 has this:
#include <iostream>
I did some google searches, but came up with zip. Did I bork something during the dist-upgrade? Any ideas/suggestions would be really helpful! It seems really weird that including <iostream> would result in something so catastrophic!!
Regards,
-J-
I use (and maintain and write code for) a robot control software, writen entirely in C++. The code used to compile fine with g++4.1, under Gutsy Gibbon. I recently dist-upgraded too Hardy, and it switched to using g++4.2 as the default compiler. With that started zillions of error messages, all seem to be originating from the C++ standard headers. Here's an example:
In file included from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/ios:45,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from /home/junaed/work/C++/RoboDevel/RHex/include/behaviors/NMTune.hh:55,
from /home/junaed/work/C++/RoboDevel/RHex/include/behaviors/TuneMode.hh:66,
from supervisor.cc:26:
and one more:
/usr/include/c++/4.2/bits/stl_algobase.h: At global scope:
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected unqualified-id before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected initializer before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected unqualified-id before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected initializer before ‘const’
The source supervisor.cc at line 26 has this:
#include <iostream>
I did some google searches, but came up with zip. Did I bork something during the dist-upgrade? Any ideas/suggestions would be really helpful! It seems really weird that including <iostream> would result in something so catastrophic!!
Regards,
-J-