Skip to content

Compilation fails with GCC 7 #2

Description

@jarzec

While successfully compiling the project GCC 6 warns:

In file included from /usr/include/c++/6/ext/hash_map:60:0,
it lacks the 5th argument. With GCC up to version 6 this compiles as the function is never used. With GCC 7 this leads to compilation error. An alternative to removing the method could be adding a 5th parameter to be directly passed on here. from /home/jarzec/workspace/ith/3rdparty/PoissonReconstruction/source/Hash.h:40,
from /home/jarzec/workspace/ith/3rdparty/PoissonReconstruction/source/Geometry.h:38,
from /home/jarzec/workspace/ith/3rdparty/PoissonReconstruction/source/MarchingCubes.h:37,
from /home/jarzec/workspace/ith/3rdparty/PoissonReconstruction/source/MarchingCubes.cpp:34:
/usr/include/c++/6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^~~~~~~

In GCC 7 hash_map is completely removed and compilation fails.

Additionaly the call in line 2661 in source/MultiGridOctreeData.inl is incorrect - it lacks the 5th argument. With GCC prior to version 7 this compiles as the function is never used. With GCC 7 this leads to compilation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions