[Gmsh] Compiling Gmsh - undefined reference to `Fl::w()

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun Jul 20 23:16:46 CEST 2008


mglocken at aol.com wrote:
> Hello,
> 
> I have tried to compile Gmsh. Everything works fine up to the final call 
> of g++. Then this error message is printed:
> 
> ...
> g++ -mwindows -I/c/Programme/FEM_GMSH/fltk-1.1.9 
> -I/c/Programme/FEM_GMSH/fltk-1.1.9/FL -o bin/gmsh.exe -Llib -lGmshFltk 
> -lGmshParser -lGmshGraphics -lGmshPlugin -lGmshMesh -lGmshGeo -lGmshPost 
> -lGmshCommon -lGmshDataStr -lGmshNumeric -lGmshParallel 
> -L/c/Programme/FEM_GMSH/fltk-1.1.9/lib -lGmshNativeFileChooser 
> -L/c/Programme/FEM_GMSH/fltk-1.1.9/lib -lGmshANN -lGmshNetgen 
> -lGmshMathEval -L/c/Programme/FEM_GMSH/gsl-1.11 
> -L/c/Programme/FEM_GMSH/gsl-1.11/.libs 
> -L/c/Programme/FEM_GMSH/gsl-1.11/cblas/.libs -lgsl -lgslcblas -lm 
> Fltk/Win32Icon.res


you're not linking with the fltk libraries...




> lib/libGmshFltk.a(GUI.o)(.text+0x536):GUI.cpp: undefined reference to 
> `Fl::w()'
> lib/libGmshFltk.a(GUI.o)(.text+0x5b6):GUI.cpp: undefined reference to 
> `Fl::test_shortcut(int)'
> ...
> (there are a lot more lines with "undefined reference to `Fl:: ... " 
> and with "undefined reference to `gl ... ", too)
> 
> The path to Fl.H is set with -I/c/Programme/FEM_GMSH/fltk-1.1.9/FL .
> 
> What´s wrong?
> 
> 
> Greetings,
> 
>    Michael Glockenmeier
> 
> ----------------------------------------------
> Fa. Michael Glockenmeier
> Dipl.-Ing. Michael Glockenmeier
> Hauptstr. 55 c
> D-86926 Greifenberg
> Germany
> 
> Tel ++49 (0) 8192/933 185
> Fax ++49 (0) 8192/933 186
> Email mglocken at aol.com
> 
> Visit my site: www.femcfd.com
> ------------------------------------------------------------------------
> *AOL eMail auf Ihrem Handy!*Ab sofort können Sie auch unterwegs Ihre AOL 
> email abrufen. Registrieren <http ://www.aol.de/Webmail/> Sie sich jetzt 
> kostenlos.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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