Juernjakob Dugge <juernjakob.dugge(a)uni-tuebingen.de> writes:
I just came across an issue trying to install MeshPy
2011.1 using gcc 4.7.2.
Using "sudo pip install meshpy", the compilation fails with the
following error message:
src/cpp/foreign_array.hpp: In instantiation of ‘tForeignArray<ElementT>&
tForeignArray<ElementT>::operator=(const tForeignArray<ElementT>&) [with
ElementT = double; tForeignArray<ElementT> = tForeignArray<double>]’:
src/cpp/wrap_triangle.cpp:97:20: required from here
src/cpp/foreign_array.hpp:262:9: error: ‘setSize’ was not declared in
this scope, and no declarations were found by argument-dependent lookup
at the point of instantiation [-fpermissive]
It turns out that this error is caused by changes introduced in version
4.7 of gcc, see "Name lookup changes" at
. The error can be avoided by
downloading the MeshPy package manually and passing the "-fpermissive"
flag to the compiler via the "configure.py" script by using
python configure.py --cxxflags=-fpermissive && sudo python setup.py install
I've released 2013.1 a few days ago. I believe the problem is fixed in
that version. If not, please let me know.