[Gmsh] Compilation error
Bastien Gorissen
bastien.gorissen at cenaero.be
Mon Sep 28 09:44:55 CEST 2009
Hello,
Trying to compile a freshly updated CVS version of GMSH gave me this
error today :
[ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/fileDialogs.cpp.o
/home/gorissen/src/gmsh/Fltk/fileDialogs.cpp: In function ‘int
fileChooser(int, int, const char*, const char*, const char*)’:
/home/gorissen/src/gmsh/Fltk/fileDialogs.cpp:117: error: expected
type-specifier before ‘fileChooser’
/home/gorissen/src/gmsh/Fltk/fileDialogs.cpp:117: error: cannot convert
‘int*’ to ‘fileChooser*’ in assignment
/home/gorissen/src/gmsh/Fltk/fileDialogs.cpp:117: error: expected `;'
before ‘fileChooser’
make[2]: *** [CMakeFiles/gmsh.dir/Fltk/fileDialogs.cpp.o] Error 1
make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2
The problem arises because of a name clash (latest revision changed the
spelling of a bunch of stuff) : the class file_chooser became
fileChooser, but there was already a method int fileChooser, hence the
problem.
Which should be renamed ? The method or the class ?
-Bastien