[Gmsh] Compilation error

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Sep 28 10:55:30 CEST 2009


Bastien Gorissen wrote:
> 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 ?

Ok, this should be fixed

Thanks!
Ch



> 
> -Bastien
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine