Hi,

I have problems compiling today's JSBsim with MSVC. I had
to patch the sources like this :

Index: FGColumnVector3.h
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/FlightGear/src/FDM/JSBSim/FGColumnVector3.h,v
retrieving revision 1.6
diff -u -r1.6 FGColumnVector3.h
--- a/FGColumnVector3.h 14 Mar 2004 14:57:07 -0000      1.6
+++ b/FGColumnVector3.h 14 Mar 2004 22:17:22 -0000
@@ -33,7 +33,7 @@
    SG_USING_STD(cerr);
    SG_USING_STD(cout);
    SG_USING_STD(endl);
-   SG_USING_STD(sqrt);
+//   SG_USING_STD(sqrt);
 #else
 #  include <string>
 #  if defined(sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)
Index: FGColumnVector4.h
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/FlightGear/src/FDM/JSBSim/FGColumnVector4.h,v
retrieving revision 1.6
diff -u -r1.6 FGColumnVector4.h
--- a/FGColumnVector4.h 14 Mar 2004 14:57:07 -0000      1.6
+++ b/FGColumnVector4.h 14 Mar 2004 22:19:05 -0000
@@ -31,7 +31,7 @@
    SG_USING_STD(cerr);
    SG_USING_STD(cout);
    SG_USING_STD(endl);
-   SG_USING_STD(sqrt);
+//   SG_USING_STD(sqrt);
 #else
 #  include <string>
 #  if defined (sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 740)


because sqrt is not a member of std::

Is this declaration really necessary ? I see that <math.h> is included
11 lines before and it should declare sqrt in the global namespace, not
in the std namespace, so why a 'using std::sqrt;' here ? Is it required
for cygwin or linux or another unix ?

Thanks,
-Fred



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

Reply via email to