Jonathan Adam Muse wrote:
> Hello Everyone,
>
>
> I'm an aerospace engineering student looking to use flightgear as an
> image generator for my generic flight dynamics model project.  I'm
> starting to get decent at programming but some of these flightgear
> errors are above me.  Is there anyone out there that can explain how
> to fix this microsoft vc error?  I'm using MSVC 6.0.

MSVC 6 is not able to compile FG CVS without a lot of ugly patches
because it is buggy with templates, even with Service Packs.
I use MSVC 7 with success and recommend to do so if possible.
I am not submitting patches for it anymore.


Just ignore the warnings. You can add

#ifdef _MSC_VER
#pragma warning( disable: 4786 )
#endif

at the top of the file if you want

For the errors, apply the patch below, and be prepared to do several
things like that in other directories.

-Fred

D:\fgfs-msvc6\source\src\GUI>cvs -z3 diff -u
cvs server: Diffing .
Index: menubar.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/menubar.cxx,v
retrieving revision 1.15
diff -u -r1.15 menubar.cxx
--- menubar.cxx 22 May 2003 08:42:38 -0000      1.15
+++ menubar.cxx 19 Oct 2003 08:49:47 -0000
@@ -229,7 +229,7 @@

                                 // Delete all those bindings
     SG_LOG(SG_GENERAL, SG_INFO, "Deleting bindings");
-    map<string,vector<FGBinding *> >::iterator it;
+    FGBinding_vector_map::iterator it;
     it = _bindings.begin();
     for (it = _bindings.begin(); it != _bindings.end(); it++) {
         SG_LOG(SG_GENERAL, SG_INFO, "Deleting bindings for " << it->first);
Index: menubar.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/menubar.hxx,v
retrieving revision 1.6
diff -u -r1.6 menubar.hxx
--- menubar.hxx 21 Jan 2003 15:44:21 -0000      1.6
+++ menubar.hxx 19 Oct 2003 08:49:47 -0000
@@ -22,6 +22,8 @@
 class puObject;
 class FGBinding;

+typedef map<string,vector<FGBinding *> > FGBinding_vector_map;
+

 /**
  * XML-configured PUI menu bar.
@@ -100,7 +102,7 @@
     puMenuBar * _menuBar;

     // A map of bindings for the menubar.
-    map<string,vector<FGBinding *> > _bindings;
+    FGBinding_vector_map _bindings;

     // These are hoops that we have to jump through because PUI doesn't
     // do memory management for lists.  We have to allocate the arrays,
Index: new_gui.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/new_gui.cxx,v
retrieving revision 1.18
diff -u -r1.18 new_gui.cxx
--- new_gui.cxx 24 Sep 2003 17:20:56 -0000      1.18
+++ new_gui.cxx 19 Oct 2003 08:49:47 -0000
@@ -135,7 +135,7 @@
     delete _menubar;
     _menubar = 0;

-    map<string,SGPropertyNode *>::iterator it;
+    PropertyNode_map::iterator it;
     for (it = _dialog_props.begin(); it != _dialog_props.end(); it++)
         delete it->second;
     _dialog_props.clear();
Index: new_gui.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/new_gui.hxx,v
retrieving revision 1.15
diff -u -r1.15 new_gui.hxx
--- new_gui.hxx 24 Sep 2003 17:20:56 -0000      1.15
+++ new_gui.hxx 19 Oct 2003 08:49:47 -0000
@@ -25,6 +25,7 @@
 class FGDialog;
 class FGBinding;

+typedef map<string,SGPropertyNode *> PropertyNode_map;

 /**
  * XML-configured GUI subsystem.
@@ -151,7 +152,7 @@

     FGMenuBar * _menubar;
     FGDialog * _active_dialog;
-    map<string,SGPropertyNode *> _dialog_props;
+    PropertyNode_map _dialog_props;

 };



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to