<div dir="ltr"><div>Greetings,</div><div><br></div><div>I reinstalled CYGWIN64 making sure to not ask for any of the cygwin native compilers. This seems to have resolved the previous "compiler contamination" issue. Thank you for that.</div><div><br></div><div>Now it looks like the problem has to do with an unresolved reference within FLTK. Any suggestions will be much appreciated.<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>johnf@INSPI13 /cygdrive/c/gmsh/build9<br>$ cmake -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe -DCMAKE_C_COMPILER<br>=/usr/bin/x86_64-w64-mingw32-gcc.exe -DCMAKE_Fortran_COMPILER=/usr/bin/x86_64-w64-m<br>ingw32-gfortran.exe ..<br>-- The CXX compiler identification is GNU 6.4.0<br>-- The C compiler identification is GNU 6.4.0<br>-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++.exe<br>-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++.exe -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Detecting CXX compile features<br>-- Detecting CXX compile features - done<br>-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe<br>-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Detecting C compile features<br>-- Detecting C compile features - done<br>-- Looking for sys/types.h<br>-- Looking for sys/types.h - found<br>-- Looking for stdint.h<br>-- Looking for stdint.h - found<br>-- Looking for stddef.h<br>-- Looking for stddef.h - found<br>-- Check size of void*<br>-- Check size of void* - done<br>-- Found 64Bit<br>-- Performing Test STDCXX11<br>-- Performing Test STDCXX11 - Success<br>-- The Fortran compiler identification is GNU 6.4.0<br>-- Check for working Fortran compiler: /usr/bin/x86_64-w64-mingw32-gfortran.exe<br>-- Check for working Fortran compiler: /usr/bin/x86_64-w64-mingw32-gfortran.exe -- works<br>-- Detecting Fortran compiler ABI info<br>-- Detecting Fortran compiler ABI info - done<br>-- Checking whether /usr/bin/x86_64-w64-mingw32-gfortran.exe supports Fortran 90<br>-- Checking whether /usr/bin/x86_64-w64-mingw32-gfortran.exe supports Fortran 90 -- yes<br>-- Looking for Fortran sgemm<br>-- Looking for Fortran sgemm - found<br>-- Looking for pthread.h<br>-- Looking for pthread.h - found<br>-- Looking for pthread_create<br>-- Looking for pthread_create - found<br>-- Found Threads: TRUE<br>-- A library with BLAS API found.<br>-- Found Blas<br>-- A library with BLAS API found.<br>-- Looking for Fortran cheev<br>-- Looking for Fortran cheev - found<br>-- A library with LAPACK API found.<br>-- Found Lapack<br>-- Found Mesh<br>-- Found Solver<br>-- Found Post<br>-- Found Plugins<br>-- Found Parser<br>-- Found Fltk<br>-- Using fltk-config script for Fltk 1.3<br>-- Found NativeFileChooser<br>-- Found ONELAB<br>-- Found ONELABMetamodel<br>-- Found JPEG: /usr/lib/libjpeg.dll.a<br>-- Found Jpeg<br>-- Found ZLIB: /usr/lib/libz.dll.a (found version "1.2.11")<br>-- Found Zlib<br>-- Found PNG: /usr/lib/libpng.dll.a (found version "1.6.34")<br>-- Found Png<br>-- Found Mpeg<br>-- Found OpenGL: /usr/lib/libGL.dll.a<br>-- Found OpenGL<br>-- System ANN not found: using contrib/ANN instead<br>-- Found Ann<br>-- Found Bfgs<br>-- Found DIntegration<br>-- Found OptHom<br>-- Found Kbipack<br>-- GMP not found: Kbipack uses long int<br>-- Found MathEx<br>-- System METIS not found: using contrib/metis instead<br>-- Found Metis<br>-- Found TetGen/BR<br>-- System voro++ not found: using contrib/voro++ instead<br>-- Found Voro++<br>-- Found Blossom<br>-- Found Netgen<br>-- Found Bamg<br>-- System MMG3D not found: using contrib/mmg3d instead<br>-- Found Mmg3d<br>-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS HDF5_HL_LIBRARIES)<br>-- HDF5 not found<br>-- System GMM not found: using contrib/gmm instead<br>-- Found Gmm<br>-- Looking for vsnprintf<br>-- Looking for vsnprintf - found<br>-- Looking for sys/socket.h<br>-- Looking for sys/socket.h - not found<br>-- Check size of socklen_t<br>-- Check size of socklen_t - failed<br>-- Found NoSocklenT<br>-- Check size of intptr_t<br>-- Check size of intptr_t - done<br>-- Looking for dlfcn.h<br>-- Looking for dlfcn.h - found<br>-- Found Dlopen<br>-- Looking for linux/joystick.h<br>-- Looking for linux/joystick.h - not found<br>-- Performing Test WALL<br>-- Performing Test WALL - Success<br>-- Performing Test WCAST<br>-- Performing Test WCAST - Failed<br>-- Performing Test WDEPREC<br>-- Performing Test WDEPREC - Success<br>-- Performing Test WIND<br>-- Performing Test WIND - Success<br>-- Performing Test NOWARN<br>-- Performing Test NOWARN - Success<br>-- Performing Test NOOPT<br>-- Performing Test NOOPT - Success<br>--<br>-- Gmsh 3.0.7 has been configured for Windows64<br>--<br>-- * Build options: 64Bit Ann Bamg Bfgs Blas Blossom DIntegration Dlopen Fltk Gmm Jpeg Kbipack Lapack MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen NoSocklenT ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins Png Post Solver TetGen/BR Voro++ Zlib<br>-- * Build type: RelWithDebInfo<br>-- * C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe<br>-- * C++ compiler: /usr/bin/x86_64-w64-mingw32-g++.exe<br>-- * Install prefix: /usr/local<br>--<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /cygdrive/c/gmsh/build9</div><div>j</div><div>johnf@INSPI13 /cygdrive/c/gmsh/build9<br></div><div>$ make<br>Scanning dependencies of target gmsh<br>[ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.o<br>[ 0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o<br>[.....</div><div><br>[ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GEdge.cpp.o<br>/cygdrive/c/gmsh/Geo/GEdge.cpp:56:2: warning: #warning missing:computation of affine transformation during setMeshMaster [-Wcpp]<br> #warning missing:computation of affine transformation during setMeshMaster<br> ^~~~~~~<br>/cygdrive/c/gmsh/Geo/GEdge.cpp: In member function ‘virtual SBoundingBox3d GEdge::bounds() const’:<br>/cygdrive/c/gmsh/Geo/GEdge.cpp:214:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int j = 0; j < getMeshElement(i)->getNumVertices(); j++)<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GFace.cpp.o<br>/cygdrive/c/gmsh/Geo/GFace.cpp: In member function ‘virtual SBoundingBox3d GFace::bounds() const’:<br>/cygdrive/c/gmsh/Geo/GFace.cpp:224:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int j = 0; j < getMeshElement(i)->getNumVertices(); j++)<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GRegion.cpp.o<br>/cygdrive/c/gmsh/Geo/GRegion.cpp: In member function ‘virtual SBoundingBox3d GRegion::bounds() const’:<br>/cygdrive/c/gmsh/Geo/GRegion.cpp:151:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int j = 0; j < getMeshElement(i)->getNumVertices(); j++)<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GEdgeLoop.cpp.o<br>[ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/gmshVertex.cpp.o<br></div><div><br></div><div>...</div><div><br></div><div>[ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MSH2.cpp.o<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp: In function ‘MElement* createElementMSH2(GModel*, int, int, int, int, int, std::vector<MVertex*>&, std::map<int, std::vector<MElement*> >*, std::map<int, std::map<int, std::__cxx11::basic_string<char> > >*, bool, MElement*, MElement*, MElement*)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp:89:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(part > m->getNumPartitions()) m->setNumPartitions(part);<br> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp: In member function ‘int GModel::_writePartitionedMSH2(const string&, bool, bool, bool, double)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp:990:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(int partition = 1; partition <= getNumPartitions(); partition++){<br> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~<br>[ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MSH3.cpp.o<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH3.cpp: In member function ‘int GModel::_writePartitionedMSH3(const string&, double, bool, bool, bool, double)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH3.cpp:745:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(int partition = 0; partition < getNumPartitions(); partition++){<br> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~<br>[ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MSH4.cpp.o<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘bool readMSH4Entities(GModel*, FILE*, bool, bool, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:286:59: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(fread(ghostTags, sizeof(int), 2*ghostSize, fp) != 2*ghostSize){<br> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:302:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int i = 0; i < 2*ghostSize; i+=2){<br> ~~^~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:312:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int i = 0; i < 2*ghostSize; i+=2){<br> ~~^~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘bool readMSH4GhostElements(GModel*, FILE*, bool, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1040:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int j = 0; j < numGhost; j++){<br> ~~^~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1050:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(j == numGhost-1){<br> ~~^~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void writeMSH4Physicals(FILE*, GEntity*, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1357:35: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::vector<int>::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%lu", phys.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void writeMSH4Entities(GModel*, FILE*, bool, bool, double)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::set<GVertex*, GEntityLessThan>::size_type {aka long long unsigned int}’ [-Wformat=]<br> vertices.size(), edges.size(), faces.size(), regions.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘std::set<GEdge*, GEntityLessThan>::size_type {aka long long unsigned int}’ [-Wformat=]<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘std::set<GFace*, GEntityLessThan>::size_type {aka long long unsigned int}’ [-Wformat=]<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘std::set<GRegion*, GEntityLessThan>::size_type {aka long long unsigned int}’ [-Wformat=]<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1683:42: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::__cxx11::list<GVertex*>::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%lu ", vertices.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1710:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::__cxx11::list<GEdge*>::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%lu ", edges.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1742:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::__cxx11::list<GFace*>::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%lu ", faces.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void writeMSH4Nodes(GModel*, FILE*, bool, bool, int, double, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1966:40: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::set<GVertex*, GEntityLessThan>::size_type {aka long long unsigned int}’ [-Wformat=]<br> regions.size(), numVertices);<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void writeMSH4Elements(GModel*, FILE*, bool, bool, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2182:66: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::map<std::pair<int, GEntity*>, std::vector<MElement*> >::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%lu %lu\n", elementsByDegree.size(), numElements);<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2199:49: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘std::vector<MElement*>::size_type {aka long long unsigned int}’ [-Wformat=]<br> it->first.first, it->second.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void writeMSH4PeriodicNodes(GModel*, FILE*, bool, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2290:67: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘std::map<MVertex*, MVertex*>::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%lu\n", g_slave->correspondingVertices.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void writeMSH4GhostCells(GModel*, FILE*, bool)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2356:45: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::map<MElement*, std::vector<unsigned int> >::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%ld\n", ghostCells.size());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2360:89: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘std::vector<unsigned int>::size_type {aka long long unsigned int}’ [-Wformat=]<br> fprintf(fp, "%d %d %ld", it->first->getNum(), it->second[0], it->second.size()-1);<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In member function ‘int GModel::_writeMSH4(const string&, double, bool, bool, bool, double)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2386:71: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘long long unsigned int’ [-Wformat=]<br> fprintf(fp, "%g %d %lu\n", version, (binary ? 1 : 0), sizeof(double));<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In member function ‘int GModel::_writePartitionedMSH4(const string&, double, bool, bool, bool, double)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2634:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int k = 0; k < ghostEntity->getMeshElement(j)->getNumVertices(); k++){<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_VTK.cpp.o<br>[...</div><div><br></div><div><br>[ 16%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_DIFF.cpp.o<br>/cygdrive/c/gmsh/Geo/GModelIO_DIFF.cpp: In member function ‘int GModel::readDIFF(const string&)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_DIFF.cpp:333:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(partition > getNumPartitions()) setNumPartitions(partition);<br> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~<br>[ 16%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_GEOM.cpp.o<br></div><div>....[</div><div> 16%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_NEU.cpp.o<br>/cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp: In member function ‘int GModel::writeNEU(const string&, bool, double)’:<br>/cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:222:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘std::unordered_map<unsigned int, std::vector<unsigned int>, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<const unsigned int, std::vector<unsigned int> > > >::size_type {aka long long unsigned int}’ [-Wformat=]<br> getDim());<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:222:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘std::unordered_map<unsigned int, std::vector<std::pair<unsigned int, unsigned int> >, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<const unsigned int, std::vector<std::pair<unsigned int, unsigned int> > > > >::size_type {aka long long unsigned int}’ [-Wformat=]<br>/cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:255:44: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘std::vector<unsigned int>::size_type {aka long long unsigned int}’ [-Wformat=]<br> it->first, it->second.size(), 1);<br> ^<br>/cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:276:43: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘std::vector<std::pair<unsigned int, unsigned int> >::size_type {aka long long unsigned int}’ [-Wformat=]<br> gambitBoundaryCode(regionName));<br> ^<br>[ 17%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_ACTRAN.cpp.o<br></div><div>...[</div><div> 19%] Building CXX object CMakeFiles/gmsh.dir/Geo/MElement.cpp.o<br>/cygdrive/c/gmsh/Geo/MElement.cpp: In member function ‘MElement* MElementFactory::create(int, int, const std::vector<int>&, GModel*)’:<br>/cygdrive/c/gmsh/Geo/MElement.cpp:1919:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(part > model->getNumPartitions()) model->setNumPartitions(part);<br> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 19%] Building CXX object CMakeFiles/gmsh.dir/Geo/MElementOctree.cpp.o<br>......<br>[ 20%] Building CXX object CMakeFiles/gmsh.dir/Geo/MElementCut.cpp.o<br>/cygdrive/c/gmsh/Geo/MElementCut.cpp: In function ‘GModel* buildCutMesh(GModel*, gLevelset*, std::map<int, std::vector<MElement*> >*, std::map<int, MVertex*>&, std::map<int, std::map<int, std::__cxx11::basic_string<char> > >*, bool)’:<br>/cygdrive/c/gmsh/Geo/MElementCut.cpp:1518:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(e->getPartition() > cutGM->getNumPartitions()) cutGM->setNumPartitions(e->getPartition());<br> ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Geo/MElementCut.cpp:1548:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> if(e->getPartition() > cutGM->getNumPartitions()) cutGM->setNumPartitions(e->getPartition());<br> ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 20%] Building CXX object CMakeFiles/gmsh.dir/Geo/MSubElement.cpp.o<br>...<br>[ 27%] Building CXX object CMakeFiles/gmsh.dir/Mesh/meshPartition.cpp.o<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp: In member function ‘void Graph::eraseVertex()’:<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp:241:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int i = 0; i < _vertexSize; i++) _vertex[i] = -1;<br> ~~^~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp: In function ‘int MakeGraph(GModel*, Graph&, int)’:<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp:505:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int k = 0; k < entities[i]->getMeshElement(j)->getNumVertices() ; k++){<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp: In function ‘int computeOrientation(MElement*, MElement*)’:<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp:1775:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int i = 0; i < reference->getNumFaces(); i++){<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~<br>/cygdrive/c/gmsh/Mesh/meshPartition.cpp:1790:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int i = 0; i < reference->getNumEdges(); i++){<br> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~<br>[ 27%] Building CXX object CMakeFiles/gmsh.dir/Mesh/meshRefine.cpp.o<br>...<br>[ 34%] Building CXX object CMakeFiles/gmsh.dir/Post/adaptiveData.cpp.o<br>/cygdrive/c/gmsh/Post/adaptiveData.cpp: In member function ‘void VTKData::finalizeVTKFile()’:<br>/cygdrive/c/gmsh/Post/adaptiveData.cpp:1935:182: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]<br> fprintf(vtkFile,"<DataArray type=\"Float64\" Name=\"%s\" NumberOfComponents=\"%d\" format=\"appended\" offset=\"%" PRIu64 "\"/>\n", vtkFieldName.c_str(), vtkNumComp,byteoffset);<br> ^<br>/cygdrive/c/gmsh/Post/adaptiveData.cpp:1945:151: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]<br> fprintf(vtkFile,"<DataArray type=\"Float64\" Name=\"Points\" NumberOfComponents=\"3\" format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);<br> ^<br>/cygdrive/c/gmsh/Post/adaptiveData.cpp:1951:130: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]<br> fprintf(vtkFile,"<DataArray type=\"Int64\" Name=\"connectivity\" format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);<br> ^<br>/cygdrive/c/gmsh/Post/adaptiveData.cpp:1953:125: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]<br> fprintf(vtkFile,"<DataArray type=\"Int64\" Name=\"offsets\" format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);<br> ^<br>/cygdrive/c/gmsh/Post/adaptiveData.cpp:1955:123: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]<br> fprintf(vtkFile,"<DataArray type=\"UInt8\" Name=\"types\" format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);<br> ^<br>[ 34%] Building CXX object CMakeFiles/gmsh.dir/Post/shapeFunctions.cpp.o<br>...<br>[ 42%] Building CXX object CMakeFiles/gmsh.dir/Plugin/SimplePartition.cpp.o<br>/cygdrive/c/gmsh/Plugin/SimplePartition.cpp: In member function ‘virtual void GMSH_SimplePartitionPlugin::run()’:<br>/cygdrive/c/gmsh/Plugin/SimplePartition.cpp:115:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(unsigned int k = 0; k < numSlices; k++){<br> ~~^~~~~~~~~~~<br>[ 42%] Building CXX object CMakeFiles/gmsh.dir/Plugin/Crack.cpp.o<br>[...<br>[ 45%] Building CXX object CMakeFiles/gmsh.dir/Fltk/visibilityWindow.cpp.o<br>/cygdrive/c/gmsh/Fltk/visibilityWindow.cpp: In member function ‘void VisibilityList::update(VisibilityList::VisibilityType)’:<br>/cygdrive/c/gmsh/Fltk/visibilityWindow.cpp:252:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br> for(int part = 0; part < m->getNumPartitions(); part++)<br> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~<br>[ 45%] Building CXX object CMakeFiles/gmsh.dir/Fltk/highOrderToolsWindow.cpp.o<br>...<br>[100%] Building C object CMakeFiles/gmsh.dir/contrib/mmg3d/build/sources/analarcutting.c.o<br>[100%] Building C object CMakeFiles/gmsh.dir/contrib/mmg3d/build/sources/analar.c.o<br>[100%] Linking CXX executable gmsh.exe<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(gl_draw.o):(.text$_Z7gl_drawPKci+0x56): undefined reference to `__imp_wglUseFontBitmapsW'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_create_gl_contextP9Fl_WindowPK12Fl_Gl_Choicei+0x2d): undefined reference to `__imp_wglCreateLayerContext'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_create_gl_contextP9Fl_WindowPK12Fl_Gl_Choicei+0x78): undefined reference to `__imp_wglCreateContext'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_create_gl_contextP9Fl_WindowPK12Fl_Gl_Choicei+0x89): undefined reference to `__imp_wglShareLists'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z17fl_set_gl_contextP9Fl_WindowP7HGLRC__+0x25): undefined reference to `__imp_wglMakeCurrent'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z16fl_no_gl_contextv+0x1d): undefined reference to `__imp_wglMakeCurrent'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_delete_gl_contextP7HGLRC__+0x1c): undefined reference to `__imp_wglDeleteContext'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_delete_gl_contextP7HGLRC__+0xc3): undefined reference to `__imp_wglMakeCurrent'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(Fl.o):(.text$_Z15fl_open_displayv.part.41+0x10): undefined reference to `__imp_OleInitialize'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(Fl.o):(.text$__tcf_1+0x10): undefined reference to `__imp_OleUninitialize'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(Fl.o):(.text$_ZN4Fl_X4makeEP9Fl_Window+0x2f8): undefined reference to `__imp_RegisterDragDrop'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(Fl.o):(.text$_ZL7WndProcP6HWND__jyx+0x5c0): undefined reference to `__imp__TrackMouseEvent'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm[_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm]+0x266): undefined reference to `__imp_ReleaseStgMedium'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm[_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm]+0x4ea): undefined reference to `__imp_ReleaseStgMedium'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm[_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm]+0x5cb): undefined reference to `__imp_ReleaseStgMedium'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm[_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm]+0x257): undefined reference to `__imp_ReleaseStgMedium'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm[_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm]+0x42c): undefined reference to `__imp_ReleaseStgMedium'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm[_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm]+0x59b): more undefined references to `__imp_ReleaseStgMedium' follow<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.text$_ZN2Fl3dndEv+0x5c): undefined reference to `__imp_DoDragDrop'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.rdata$.refptr.IID_IDropTarget[.refptr.IID_IDropTarget]+0x0): undefined reference to `IID_IDropTarget'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.rdata$.refptr.IID_IDropSource[.refptr.IID_IDropSource]+0x0): undefined reference to `IID_IDropSource'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.rdata$.refptr.IID_IDataObject[.refptr.IID_IDataObject]+0x0): undefined reference to `IID_IDataObject'<br>/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(fl_dnd.o):(.rdata$.refptr.IID_IUnknown[.refptr.IID_IUnknown]+0x0): undefined reference to `IID_IUnknown'<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [CMakeFiles/gmsh.dir/build.make:18360: gmsh.exe] Error 1<br>make[1]: *** [CMakeFiles/Makefile2:548: CMakeFiles/gmsh.dir/all] Error 2<br>make: *** [Makefile:161: all] Error 2</div><div><br></div><div><br></div><div><br></div><div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1615px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal">Best regards</div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1615px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal">John</div><b></b></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 24, 2018 at 11:48 AM, Christophe Geuzaine <span dir="ltr"><<a href="mailto:cgeuzaine@uliege.be" target="_blank">cgeuzaine@uliege.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On 24 Feb 2018, at 17:09, John Staples <<a href="mailto:john.f.staples@gmail.com" target="_blank">john.f.staples@gmail.com</a>> wrote:</div><br class="m_-4659206682922772596Apple-interchange-newline"><div><div dir="ltr"><div>Thank you for the advice to use the <span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent">-DCMAKE_CXX_COMPILER=/usr/bin/<wbr>x86_64-w64-mingw32-g++.exe option on the cmake command line. Your help is very much appreciated.</span></div><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent"><br></span></div><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent">I am now stumbling on something that may be simple: how to specify the path to the linker libraries? I am guessing -D<span class="m_-4659206682922772596gmail-n" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">link_directories</span><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">(</span><span class="m_-4659206682922772596gmail-n" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">directory1</span><span style="font:400 16px/18.66px sans-serif;text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;font-size-adjust:none;font-stretch:normal;float:none;background-color:rgb(238,238,238)"> </span><span class="m_-4659206682922772596gmail-n" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">directory2</span><span style="font:400 16px/18.66px sans-serif;text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;font-size-adjust:none;font-stretch:normal;float:none;background-color:rgb(238,238,238)"> </span><span class="m_-4659206682922772596gmail-o" style="text-align:left;color:rgb(102,102,102);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:sans-serif;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;white-space:pre-wrap;background-color:transparent">...</span><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">) but can't find the paths for 'ldl' and 'lcgywin'</span></span></div></div></div></blockquote><div><br></div><div>-ldl and -lcygwin should not be used when you compile with the mingw toolchain: these would lead to a executable that is not pure Windows. These might be pulled in by some dependencies compiled with the cygwin compile - you should remove these dependencies (or compile them with the mingw toolchain).</div><div> </div><br><blockquote type="cite"><div><div dir="ltr"><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent"><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">as identified in the following:</span></span></div><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent"><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent"><br></span></span></div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent"><div><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">johnf@INSPI13 /cygdrive/c/gmsh/build<br><br>$ make<br>Scanning dependencies of target gmsh<br>[ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.<wbr>cpp.o<br>[ 0%] Building CXX object CMakeFiles/gmsh.dir/Common/<wbr>GmshGlobal.cpp.o<br></span></div><div><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">---</span></div><div><span class="m_-4659206682922772596gmail-p" style="font:400 16px/18.66px sans-serif;padding:0px;border:0px rgb(51,51,51);text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:pre-wrap;overflow-y:visible;font-size-adjust:none;font-stretch:normal;background-color:transparent">----<br></span></div><span style="font:400 16px/18.66px sans-serif;text-align:left;color:rgb(51,51,51);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;font-size-adjust:none;font-stretch:normal;float:none;background-color:rgb(238,238,238)"><div>[ 99%] Building C object CMakeFiles/gmsh.dir/contrib/<wbr>mmg3d/build/sources/<wbr>analarcutting.c.o<br>[ 99%] Building C object CMakeFiles/gmsh.dir/contrib/<wbr>mmg3d/build/sources/analar.c.o<br>[100%] Linking CXX executable gmsh.exe<br>/usr/lib/gcc/x86_64-w64-<wbr>mingw32/6.4.0/../../../../x86_<wbr>64-w64-mingw32/bin/ld: cannot find -ldl<br>/usr/lib/gcc/x86_64-w64-<wbr>mingw32/6.4.0/../../../../x86_<wbr>64-w64-mingw32/bin/ld: cannot find -ldl<br>/usr/lib/gcc/x86_64-w64-<wbr>mingw32/6.4.0/../../../../x86_<wbr>64-w64-mingw32/bin/ld: cannot find -lcygwin<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [CMakeFiles/gmsh.dir/build.<wbr>make:18362: gmsh.exe] Error 1<br>make[1]: *** [CMakeFiles/Makefile2:420: CMakeFiles/gmsh.dir/all] Error 2<br>make: *** [Makefile:161: all] Error 2<br></div><div><br></div><div>Thank you again for any hints/assistance.</div><div><br></div><div>John<br></div></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 22, 2018 at 3:29 AM, Christophe Geuzaine <span dir="ltr"><<a href="mailto:cgeuzaine@uliege.be" target="_blank">cgeuzaine@uliege.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On 19 Feb 2018, at 04:20, John Staples <<a href="mailto:john.f.staples@gmail.com" target="_blank">john.f.staples@gmail.com</a>> wrote:</div><br class="m_-4659206682922772596m_-1655460194264415146Apple-interchange-newline"><div><div dir="ltr"><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent">Greetings All,</span></div><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent"><br></span></div><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent">Thank you for any help with the following:</span></div><div><span style="text-align:left;text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Consolas;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;float:none;background-color:transparent"><br></span></div><div>On Windows10, I've successfully installed CYGWIN 64bit shell (<a href="https://cygwin.com/install.html" target="_blank">https://cygwin.com/install.ht<wbr>ml</a>) with FLTK, OPENGL, BLAS, LAPACK, etc.. (everything but OCC for now)</div><div><br></div><div>Make doesn't build - aborts with <span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:13.33px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent">errors, ‘usleep’ was not declared in this scope, etc.</span></div><div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1198px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal"><div><b><br></b></div><div>$ make<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">Scanning dependencies of target gmsh<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">[ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.<wbr>cpp.o<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">[ 0%] Building CXX object CMakeFiles/gmsh.dir/Common/Gms<wbr>hGlobal.cpp.o<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">In file included from /cygdrive/c/gmsh/Common/onelab<wbr>.h:40:0,<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> from /cygdrive/c/gmsh/Common/onelab<wbr>Utils.h:9,<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> from /cygdrive/c/gmsh/Common/GmshGl<wbr>obal.cpp:36:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h: In member function ‘void GmshSocket::_Sleep(int)’:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h:150:21: error: ‘usleep’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> usleep(1000 * ms);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h: In member function ‘int GmshSocket::Select(int, int, int)’:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h:179:5: error: ‘fd_set’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> fd_set rfds;<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> ^~~~~~<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h:180:14: error: ‘rfds’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> FD_ZERO(&rfds);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> ^~~~<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h:180:18: error: ‘FD_ZERO’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> FD_ZERO(&rfds);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h:181:20: error: ‘FD_SET’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> FD_SET(s, &rfds);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">/cygdrive/c/gmsh/Common/GmshSo<wbr>cket.h:184:48: error: ‘select’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> return select(s + 1, &rfds, NULL, NULL, &tv);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"> <wbr> ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">make[2]: *** [CMakeFiles/gmsh.dir/build.mak<wbr>e:87: CMakeFiles/gmsh.dir/Common/Gms<wbr>hGlobal.cpp.o] Error 1<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">make[1]: *** [CMakeFiles/Makefile2:420: CMakeFiles/gmsh.dir/all] Error 2<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal">make: *** [Makefile:161: all] Error 2<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"><br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"></div></div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1198px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal"><font color="#b00000" face="Consolas" style="background:none;font:400 13.33px Consolas;outline:transparent 0px;border:0px rgb(176,0,0);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"><br style="background:none;font:400 13.33px Consolas;outline:transparent 0px;border:0px rgb(176,0,0);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal"></font></div></div><div><b><br></b></div><div><br></div><div>Results from "cmake .." command are good:</div><div><br></div><div>$ cmake ..<br>-- The CXX compiler identification is GNU 6.4.0<br>-- The C compiler identification is GNU 6.4.0<br>-- Check for working CXX compiler: /usr/bin/c++.exe<br>-- Check for working CXX compiler: /usr/bin/c++.exe -- works<br></div></div></div></blockquote><div><br></div><div>It seems that you are using the cygwin compilers, not the mingw ones. You can specify the compiler with e.g.</div><div><br></div><div>cmake -DCMAKE_CXX_COMPILER=/usr/bin/<wbr>x86_64-w64-mingw32-g++.exe</div><div><br></div><div>Christophe</div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div><div dir="ltr"><div>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Detecting CXX compile features<br>-- Detecting CXX compile features - done<br>-- Check for working C compiler: /usr/bin/cc<br>-- Check for working C compiler: /usr/bin/cc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Detecting C compile features<br>-- Detecting C compile features - done<br>-- Looking for sys/types.h<br>-- Looking for sys/types.h - found<br>-- Looking for stdint.h<br>-- Looking for stdint.h - found<br>-- Looking for stddef.h<br>-- Looking for stddef.h - found<br>-- Check size of void*<br>-- Check size of void* - done<br>-- Found 64Bit<br>-- Performing Test STDCXX11<br>-- Performing Test STDCXX11 - Success<br>-- The Fortran compiler identification is GNU 6.4.0<br>-- Check for working Fortran compiler: /usr/bin/gfortran.exe<br>-- Check for working Fortran compiler: /usr/bin/gfortran.exe -- works<br>-- Detecting Fortran compiler ABI info<br>-- Detecting Fortran compiler ABI info - done<br>-- Checking whether /usr/bin/gfortran.exe supports Fortran 90<br>-- Checking whether /usr/bin/gfortran.exe supports Fortran 90 -- yes<br>-- Looking for Fortran sgemm<br>-- Looking for Fortran sgemm - found<br>-- Looking for pthread.h<br>-- Looking for pthread.h - found<br>-- Looking for pthread_create<br>-- Looking for pthread_create - found<br>-- Found Threads: TRUE<br>-- A library with BLAS API found.<br>-- Found Blas<br>-- A library with BLAS API found.<br>-- Looking for Fortran cheev<br>-- Looking for Fortran cheev - found<br>-- A library with LAPACK API found.<br>-- Found Lapack<br>-- Found Mesh<br>-- Found Solver<br>-- Found Post<br>-- Found Plugins<br>-- Found Parser<br>-- Found Fltk<br>-- Using fltk-config script for Fltk 1.3<br>-- Found NativeFileChooser<br>-- Found ONELAB<br>-- Found ONELABMetamodel<br>-- Found JPEG: /usr/lib/libjpeg.dll.a<br>-- Found Jpeg<br>-- Found ZLIB: /usr/lib/libz.dll.a (found version "1.2.11")<br>-- Found Zlib<br>-- Found PNG: /usr/lib/libpng.dll.a (found version "1.6.34")<br>-- Found Png<br>-- Found Mpeg<br>-- Found OpenGL: /usr/lib/libGL.dll.a<br>-- Found OpenGL<br>-- System ANN not found: using contrib/ANN instead<br>-- Found Ann<br>-- Found Bfgs<br>-- Found DIntegration<br>-- Found OptHom<br>-- Found Kbipack<br>-- Found GMP<br>-- Found MathEx<br>-- System METIS not found: using contrib/metis instead<br>-- Found Metis<br>-- Found TetGen/BR<br>-- System voro++ not found: using contrib/voro++ instead<br>-- Found Voro++<br>-- Found Blossom<br>-- Found Netgen<br>-- Found Bamg<br>-- System MMG3D not found: using contrib/mmg3d instead<br>-- Found Mmg3d<br>-- HDF5: Using hdf5 compiler wrapper to determine C configuration<br>-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration<br>-- Found HDF5: hdf5_cpp;hdf5;z;dl;m;/usr/lib/<wbr>libhdf5_cpp.dll.a;HDF5_hdf5_fo<wbr>rtran_LIBRARY-NOTFOUND;/usr/li<wbr>b/libhdf5.dll.a (found version "1.8.20")<br>-- System GMM not found: using contrib/gmm instead<br>-- Found Gmm<br>-- Looking for vsnprintf<br>-- Looking for vsnprintf - found<br>-- Looking for sys/socket.h<br>-- Looking for sys/socket.h - found<br>-- Check size of socklen_t<br>-- Check size of socklen_t - done<br>-- Check size of intptr_t<br>-- Check size of intptr_t - done<br>-- Looking for dlfcn.h<br>-- Looking for dlfcn.h - found<br>-- Found Dlopen<br>-- Looking for linux/joystick.h<br>-- Looking for linux/joystick.h - not found<br>-- Performing Test WALL<br>-- Performing Test WALL - Success<br>-- Performing Test WCAST<br>-- Performing Test WCAST - Failed<br>-- Performing Test WDEPREC<br>-- Performing Test WDEPREC - Success<br>-- Performing Test WIND<br>-- Performing Test WIND - Success<br>-- Performing Test NOWARN<br>-- Performing Test NOWARN - Success<br>-- Performing Test NOOPT<br>-- Performing Test NOOPT - Success<br>--<br>-- Gmsh 3.0.7 has been configured for Windows64<br>--<br>-- * Build options: 64Bit Ann Bamg Bfgs Blas Blossom DIntegration Dlopen Fltk GMP Gmm Jpeg Kbipack Lapack MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins Png Post Solver TetGen/BR Voro++ Zlib<br>-- * Build type: RelWithDebInfo<br>-- * C compiler: /usr/bin/cc<br>-- * C++ compiler: /usr/bin/c++.exe<br>-- * Install prefix: /usr/local<br>--<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /cygdrive/c/gmsh/build</div><div><br></div><div>Any help would be much appreciated.</div><div><br></div><div>Thanks,</div><div>Joh<br></div><div><font color="#007600" face="Consolas"><font color="#004000" face="Arial"></font><br></font></div></div>
______________________________<wbr>_________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/lis<wbr>tinfo/gmsh</a><br></div></blockquote></div><br><div>
<div style="word-wrap:break-word;line-break:after-white-space" dir="auto"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">— </div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Prof. Christophe Geuzaine<br>University of Liege, Electrical Engineering and Computer Science <br><a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank">http://www.montefiore.ulg.ac.b<wbr>e/~geuzaine</a><br><br>Free software: <a href="http://gmsh.info/" target="_blank">http://gmsh.info</a> | <a href="http://getdp.info/" target="_blank">h<wbr>ttp://getdp.info</a> | <a href="http://onelab.info/" target="_blank">http://onel<wbr>ab.info</a></div></div>
</div>
<br></div></blockquote></div><br></div>
</div></blockquote></div><br><div>
<div style="word-wrap:break-word;line-break:after-white-space" dir="auto"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">— </div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Prof. Christophe Geuzaine<br>University of Liege, Electrical Engineering and Computer Science <br><a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank">http://www.montefiore.ulg.ac.<wbr>be/~geuzaine</a><br><br>Free software: <a href="http://gmsh.info" target="_blank">http://gmsh.info</a> | <a href="http://getdp.info" target="_blank">h<wbr>ttp://getdp.info</a> | <a href="http://onelab.info" target="_blank">http://<wbr>onelab.info</a></div></div>
</div>
<br></div></blockquote></div><br></div>