Fix compilation under gcc7.5 (#81)

* Correct typo in individual license file name

* Fix compilation under GCC 7.5 for Ubuntu
This commit is contained in:
huguesdpdn
2024-11-04 16:00:12 +01:00
committed by GitHub
parent 9e44ac50b8
commit 2e3659c4bc
2 changed files with 5 additions and 1 deletions

View File

@@ -62,7 +62,9 @@
#include "ASMTRotationLimit.h"
#include "ASMTTranslationLimit.h"
#include "ExternalSystem.h"
#if __GNUC__ >= 8
#include <filesystem>
#endif
using namespace MbD;
@@ -359,8 +361,11 @@ void MbD::ASMTAssembly::runSinglePendulum()
std::shared_ptr<ASMTAssembly> MbD::ASMTAssembly::assemblyFromFile(const std::string& fileName)
{
// https://stackoverflow.com/a/45867491
#if __GNUC__ >= 8
std::filesystem::path currentPath = std::filesystem::current_path();
std::cout << "Current directory: " << currentPath << std::endl;
#endif
std::ifstream stream(fileName);
if (stream.fail()) {

View File

@@ -12,7 +12,6 @@
* @brief Program to assemble a piston crank system.
*********************************************************************/
#include <filesystem>
#include "../OndselSolver/CADSystem.h"
#include "../OndselSolver/CREATE.h"
#include "../OndselSolver/GESpMatParPvPrecise.h"