Hello. While building GMAT on Arch Linux with a recent f2c version (20200916-2) some typedefs in GMAT-R2020a/plugins/EstimationPlugin/src/base/measurement/Ionosphere/Ionosphere.hpp prevented building GMAT with a recent C compiler. It is my understanding, that in C you cannot test for existing typedefs and cannot have multiple with the same name even if the definition itself is the same.
Simply removing the following lines solved the issue and GMAT R2020a builds on a current Arch Linux. Cordially, Mirko diff -u10 -r GMAT-R2020a/plugins/EstimationPlugin/src/base/measurement/Ionosphere/Ionosphere.hpp GMAT-R2020a-patched/plugins/EstimationPlugin/src/base/measurement/Ionosphere/Ionosphere.hpp --- GMAT-R2020a/plugins/EstimationPlugin/src/base/measurement/Ionosphere/Ionosphere.hpp 2020-04-29 20:19:59.000000000 +0200 +++ GMAT-R2020a-patched/plugins/EstimationPlugin/src/base/measurement/Ionosphere/Ionosphere.hpp 2021-07-24 18:09:45.076976758 +0200 @@ -29,32 +29,20 @@ #define Ionosphere_hpp #include "MediaCorrection.hpp" #include "gmatdefs.hpp" #include "Rvector3.hpp" #include "f2c.h" #ifdef __linux__ -#ifndef integer -typedef int integer; -#endif - -#ifndef logical -typedef int logical; -#endif - -#ifndef ftnlen -typedef int ftnlen; -#endif - // SWIG has an internal max() function, so turn off the f2c macro #ifdef max #undef max #endif #endif #ifdef __APPLE__ //#undef abs // to work on Mac - the macro for abs confuses the Mac C++ code _______________________________________________ GMAT-developers mailing list GMAT-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-developers