> Alan, > > I don't like the idea to include inputvalue.hxx, the logic class has > nothing > to do with the analog input value class. I try to understand why VC spits > out > the error message here. > Could you send the build log offline, so I can have a look? Sorry, I don't > have a windows machine capable to build FlightGear, but we have a 1:4 > chance > to find the bug ;-) > > Best, Torsten
All it is complaining about is the lack of the SGVec3 and SGVec4 classes when the compiler sees Simgear/props.h. My hack was to look at similar code in your autopilot code and see what was included in other routines (which compiled successfully) before the props.h include. That is why I hit upon including inputvalue.hxx. I have just looked to see what inputvalue.hxx includes ahead of props.h, and found that adding #include <simgear/structure/SGExpression.hxx> to logic.hxx works:- i.e. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // #ifndef __LOGICCOMPONENT_HXX #define __LOGICCOMPONENT_HXX 1 #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <simgear/structure/SGExpression.hxx> #include "digitalcomponent.hxx" namespace FGXMLAutopilot { That looks a lot more elegant ! Alan PS I have already sent this reply with a build log attached but it bounced because the email was too large. The error message quote in my previous reply should be enough to show the problem. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel