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:
@@ -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()) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user