Skip to content

Re: Cannot compile the examples using “make” with Cygwin (no object file)

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Cannot compile the examples using “make” with Cygwin (no object file) Re: Cannot compile the examples using “make” with Cygwin (no object file)

#2283
John
Member

Hi Mathias,rnI commented the 5 lines shown below. The errors are similar (Also attached below). Where can I get a 64 bit singleton.h file? Thank you for your help,rn/*rn#ifdef _WIN32rn#include <direct.h>rn#else //f defined __linux__rn#include <sys/stat.h>rn#endifrn*/rnrnError outputs:rnrn$ makernCreate dependencies for cylinder2d.cpprnCompile cylinder2d.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -std=c++0x -I../../src -I../../src/ -I../../src/external -c cylinder2d.cpp -o /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.ornIn file included from ../../src/core/units.h:38:0,rn from ../../src/functors/blockBaseF3D.h:31,rn from ../../src/functors/superBaseF3D.h:30,rn from ../../src/functors/indicator/indicatorBaseF3D.h:33,rn from ../../src/functors/indicator/indicatorF3D.h:28,rn from ../../src/functors/analyticalF.h:31,rn from ../../src/core/blockLatticeStructure2D.h:38,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rn../../src/core/singleton.h: In member function ‘void olb::singleton::Directories::createDirectory(std::__cxx11::string)’:rn../../src/core/singleton.h:97:38: error: no matching function for call to ‘stat::stat(const char*, stat*)’rn if (stat(path.c_str(), &statbuf) != 0) {rn ^rnIn file included from C:/TDM-GCC-64/x86_64-w64-mingw32/include/wchar.h:384:0,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:44,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,rn from ../../src/core/olbDebug.h:28,rn from ../../src/core/cell.h:30,rn from ../../src/core/blockLatticeStructure2D.h:31,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: stat::stat()rn struct stat {rn ^rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 0 arguments, 2 providedrnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: constexpr stat::stat(const stat&)rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 1 argument, 2 providedrnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: constexpr stat::stat(stat&&)rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 1 argument, 2 providedrnIn file included from ../../src/core/units.h:38:0,rn from ../../src/functors/blockBaseF3D.h:31,rn from ../../src/functors/superBaseF3D.h:30,rn from ../../src/functors/indicator/indicatorBaseF3D.h:33,rn from ../../src/functors/indicator/indicatorF3D.h:28,rn from ../../src/functors/analyticalF.h:31,rn from ../../src/core/blockLatticeStructure2D.h:38,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rn../../src/core/singleton.h:99:27: error: ‘mkdir’ was not declared in this scopern mkdir(path.c_str());rn ^rnmake: *** [/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o] Error 1