Has anybody been able to compile and link a program using the FLTK package for Dev-C++?
I have been trying for about a week to build the sample program that comes with the FLTK documentation. I've tried Dev-C++ version4.9.6.9 and also the new version 4.9.7.0. I've tried GCC3.2 and also the older version of GCC. I've added various directories and includes and libraries to the options. Nothing has worked for me.
It compiles but won't link.
There are 11 linker errors, all of which follow the pattern:
"hello_fltk.o(.text+0x8f):hello_fltk.cpp: undefined reference to 'Fl_Window::Fl_Window(int,int,char const *)' "
Does anyone have any suggestions? I have a theory about what might be happening, but I am too new at this game to be willing to post it until I've heard from people more knowledgable than I.
Sherm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-12-05
Thanks for quick response.
yes, I am working from a Dev-C++ project, and I have added the library command "-lfltk" and an "L" to the library directory. Unfortunately, it's not quite that simple.
Sherm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Has anybody been able to compile and link a program using the FLTK package for Dev-C++?
I have been trying for about a week to build the sample program that comes with the FLTK documentation. I've tried Dev-C++ version4.9.6.9 and also the new version 4.9.7.0. I've tried GCC3.2 and also the older version of GCC. I've added various directories and includes and libraries to the options. Nothing has worked for me.
It compiles but won't link.
There are 11 linker errors, all of which follow the pattern:
"hello_fltk.o(.text+0x8f):hello_fltk.cpp: undefined reference to 'Fl_Window::Fl_Window(int,int,char const *)' "
Does anyone have any suggestions? I have a theory about what might be happening, but I am too new at this game to be willing to post it until I've heard from people more knowledgable than I.
Sherm
Did you create a FLTK project? Give that a try.
Curtis
Thanks for quick response.
yes, I am working from a Dev-C++ project, and I have added the library command "-lfltk" and an "L" to the library directory. Unfortunately, it's not quite that simple.
Sherm