Menu

#292 Compile error with GCC 4.7

closed
None
5
2013-03-28
2012-01-15
Eric Smith
No

It looks like GCC is getting more strict about C++ rules again. With GCC 4.7 and Meshlab 1.3.1, I now get the errors listed below. The fix is probably quite simple, but I don't understand C++ templates and namespaces well enough to figure it out.

In file included from meshmodel.h:52:0,
from filterparameter.cpp:31:
../../../vcglib/wrap/gl/trimesh.h: In function 'void vcg::Crease(MESH_TYPE&, typename MESH_TYPE::scalar_type)':
../../../vcglib/wrap/gl/trimesh.h:1006:9: error: 'vcg::math::Swap' is not a class member
In file included from meshmodel.h:52:0,
from interfaces.h:37,
from interfaces.cpp:1:
../../../vcglib/wrap/gl/trimesh.h: In function 'void vcg::Crease(MESH_TYPE&, typename MESH_TYPE::scalar_type)':
../../../vcglib/wrap/gl/trimesh.h:1006:9: error: 'vcg::math::Swap' is not a class member
In file included from meshmodel.h:52:0,
from meshmodel.cpp:28:
../../../vcglib/wrap/gl/trimesh.h: In function 'void vcg::Crease(MESH_TYPE&, typename MESH_TYPE::scalar_type)':
../../../vcglib/wrap/gl/trimesh.h:1006:9: error: 'vcg::math::Swap' is not a class member

Discussion

  • Guido Ranzuglia

    Guido Ranzuglia - 2012-03-19

    Thanks,
    we have repaired it, hope its working for You now.

     
  • J Beggs

    J Beggs - 2013-03-28

    It's broken again in v1.3.2 as of March 2013.

    In file included from meshmodel.h:52:0,
    from filterparameter.cpp:31:
    ../../../vcglib/wrap/gl/trimesh.h: In function ‘void vcg::Crease(MESH_TYPE&, typename MESH_TYPE::scalar_type)’:
    ../../../vcglib/wrap/gl/trimesh.h:1006:9: error: ‘vcg::math::Swap’ is not a class member
    make[1]: [filterparameter.o] Error 1
    make:
    [sub-common-make_default-ordered] Error 2

     

Log in to post a comment.