Re: [Dev-C++] Beginner : trouble with FLTK ...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-11-07 12:46:28
|
It isn't enough to add an include directory - it is only where the compiler should locate the include files referenced in your source. You also have to add the needed libraries to your linker options. FLTK is no exception. Whenever you use new libraries, you must add the libraries to the linker options - note that order matters, i.e. a library that references other libraries should be listed earlier on the command line. /Per W On Fri, 7 Nov 2003, Aur=E9lie Jeunejean wrote: > Hy, > I have Dev-C++ 4.9.7.0 and I recently install the FLTK package (found on = http://www.bloodshed.net/dev/packages/fltk.html ). > I try to make a simple Hello window but when I compile under Dev-Cpp I ge= t those error messages : > > [Linker error] undefined reference to `Fl_Window::Fl_Window(int, int, cha= r const*)' > [Linker error] undefined reference to `fl_define_FL_SHADOW_LABEL()' > ... > [Linker error] undefined reference to `Fl_Widget::~Fl_Widget()' > > In the options of the compiler, I include the directory c:\Dev-Cpp\includ= e\FL. So what do I have to do to make it work ? > > Thanks a lot. > > > |