From: Thorsten S. <tho...@go...> - 2009-11-14 14:47:23
|
Hello JSBSim Team, I just compiled the commander on ubuntu 9.10 and I did need to make the following changes for it to succeed. Two times inclusion of <algorithm> for std::filter and a cast to double for std::abs. (The reason for the latter I do not fully understand though.) Would anybody care to consider adding these changes to the repository ? Here is the cvs diff output: Index: src/gui/Table_Diag.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/gui/Table_Diag.cpp,v retrieving revision 1.4 diff -r1.4 Table_Diag.cpp 13a14 > #include <algorithm> 32a34 > Index: src/math/MattMD.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/math/MattMD.cpp,v retrieving revision 1.1 diff -r1.1 MattMD.cpp 209c209 < if ( std::abs(( *i ).m_origin - ( *j ).m_origin ) > ZERO ) --- > if ( std::abs(double(( *i ).m_origin - ( *j ).m_origin )) > ZERO ) 211c211 < if ( std::abs(( *i ).m_max - ( *j ).m_max ) > ZERO ) --- > if ( std::abs(double(( *i ).m_max - ( *j ).m_max )) > ZERO ) 213c213 < if ( std::abs(( *i ).m_min < ( *j ).m_min ) > ZERO ) --- > if ( std::abs(double(( *i ).m_min < ( *j ).m_min )) > ZERO ) Index: src/mattplot/plot.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/mattplot/plot.cpp,v retrieving revision 1.6 diff -r1.6 plot.cpp 31a32 > #include <algorithm> Kind regards, Thorsten |