AW: [Insight-users] Which Fltk?!!!???

Luis Ibanez luis.ibanez@kitware.com
Fri, 31 Jan 2003 11:19:40 -0500


Hi Zein,

These link errors inidicate that the project
is not providing the right path to FLTK
libraries.

e.g. Fl_Gl_Window is a basic class in
      fltk.lib

The problem could be that in your project,
the CMakeLists.txt file is not including
the module "FindFLTK.cmake"

or, that when you run CMake, you are not
providing the right path to the libraries.

or, that your CMakeList does not put the
FLTK_LIBRARIES in the link dependencies of
your executable.

Could you please post your CMakeLists.txt file ?

You may also want to verify the CMakeCache.txt
and look for the FLTK variables. Double check
that they are pointing to the right libraries.

If you wish, please post the FLTK-related
lines of your CMakeCache.txt file. That
could help us to see if something is not
being correctly defined.


   Thanks


     Luis


-------------------------

salah wrote:
> Hi Luis,
> 
> In fact, my program does not run at all due to Link errors. These error can you see in the attached file.
> 
> I work on Windows 2000.
> 
> Thanks, 
> Zein 
> 

> Linking...
>    Creating library Debug/MastoidSementor.lib and object Debug/MastoidSementor.exp
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall Fl_Gl_Window::draw_overlay(void)" (?draw_overlay@Fl_Gl_Window@@EAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall Fl_Gl_Window::draw_overlay(void)" (?draw_overlay@Fl_Gl_Window@@EAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall Fl_Gl_Window::draw_overlay(void)" (?draw_overlay@Fl_Gl_Window@@EAEXXZ)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "private: virtual void __thiscall Fl_Gl_Window::draw_overlay(void)" (?draw_overlay@Fl_Gl_Window@@EAEXXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::hide(void)" (?hide@Fl_Gl_Window@@UAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::hide(void)" (?hide@Fl_Gl_Window@@UAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::hide(void)" (?hide@Fl_Gl_Window@@UAEXXZ)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::hide(void)" (?hide@Fl_Gl_Window@@UAEXXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::show(void)" (?show@Fl_Gl_Window@@UAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::show(void)" (?show@Fl_Gl_Window@@UAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::show(void)" (?show@Fl_Gl_Window@@UAEXXZ)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::show(void)" (?show@Fl_Gl_Window@@UAEXXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::flush(void)" (?flush@Fl_Gl_Window@@UAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::flush(void)" (?flush@Fl_Gl_Window@@UAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::flush(void)" (?flush@Fl_Gl_Window@@UAEXXZ)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::flush(void)" (?flush@Fl_Gl_Window@@UAEXXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)" (?resize@Fl_Gl_Window@@UAEXHHHH@Z)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)" (?resize@Fl_Gl_Window@@UAEXHHHH@Z)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)" (?resize@Fl_Gl_Window@@UAEXHHHH@Z)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)" (?resize@Fl_Gl_Window@@UAEXHHHH@Z)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "void __cdecl gl_draw(char const *,int,int)" (?gl_draw@@YAXPBDHH@Z)
> Mastoid.obj : error LNK2001: unresolved external symbol "void __cdecl gl_draw(char const *,int,int)" (?gl_draw@@YAXPBDHH@Z)
> MastoidBase.obj : error LNK2001: unresolved external symbol "void __cdecl gl_draw(char const *,int,int)" (?gl_draw@@YAXPBDHH@Z)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "void __cdecl gl_draw(char const *,float,float)" (?gl_draw@@YAXPBDMM@Z)
> Mastoid.obj : error LNK2001: unresolved external symbol "void __cdecl gl_draw(char const *,float,float)" (?gl_draw@@YAXPBDMM@Z)
> MastoidBase.obj : error LNK2001: unresolved external symbol "void __cdecl gl_draw(char const *,float,float)" (?gl_draw@@YAXPBDMM@Z)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "double __cdecl gl_width(char const *)" (?gl_width@@YANPBD@Z)
> Mastoid.obj : error LNK2001: unresolved external symbol "double __cdecl gl_width(char const *)" (?gl_width@@YANPBD@Z)
> MastoidBase.obj : error LNK2001: unresolved external symbol "double __cdecl gl_width(char const *)" (?gl_width@@YANPBD@Z)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "int __cdecl gl_height(void)" (?gl_height@@YAHXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "int __cdecl gl_height(void)" (?gl_height@@YAHXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "int __cdecl gl_height(void)" (?gl_height@@YAHXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "void __cdecl gl_font(int,int)" (?gl_font@@YAXHH@Z)
> Mastoid.obj : error LNK2001: unresolved external symbol "void __cdecl gl_font(int,int)" (?gl_font@@YAXHH@Z)
> MastoidBase.obj : error LNK2001: unresolved external symbol "void __cdecl gl_font(int,int)" (?gl_font@@YAXHH@Z)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: void __thiscall Fl_Gl_Window::ortho(void)" (?ortho@Fl_Gl_Window@@QAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: void __thiscall Fl_Gl_Window::ortho(void)" (?ortho@Fl_Gl_Window@@QAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: void __thiscall Fl_Gl_Window::ortho(void)" (?ortho@Fl_Gl_Window@@QAEXXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: void __thiscall Fl_Gl_Window::make_current(void)" (?make_current@Fl_Gl_Window@@QAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: void __thiscall Fl_Gl_Window::make_current(void)" (?make_current@Fl_Gl_Window@@QAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: void __thiscall Fl_Gl_Window::make_current(void)" (?make_current@Fl_Gl_Window@@QAEXXZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall Fl_Gl_Window::~Fl_Gl_Window(void)" (??1Fl_Gl_Window@@UAE@XZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall Fl_Gl_Window::~Fl_Gl_Window(void)" (??1Fl_Gl_Window@@UAE@XZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall Fl_Gl_Window::~Fl_Gl_Window(void)" (??1Fl_Gl_Window@@UAE@XZ)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall Fl_Gl_Window::~Fl_Gl_Window(void)" (??1Fl_Gl_Window@@UAE@XZ)
> ColorViewerGUI.obj : error LNK2001: unresolved external symbol "private: void __thiscall Fl_Gl_Window::init(void)" (?init@Fl_Gl_Window@@AAEXXZ)
> Mastoid.obj : error LNK2001: unresolved external symbol "private: void __thiscall Fl_Gl_Window::init(void)" (?init@Fl_Gl_Window@@AAEXXZ)
> MastoidBase.obj : error LNK2001: unresolved external symbol "private: void __thiscall Fl_Gl_Window::init(void)" (?init@Fl_Gl_Window@@AAEXXZ)
> itkFltkImageViewer.lib(fltkImageViewerGUI.obj) : error LNK2001: unresolved external symbol "private: void __thiscall Fl_Gl_Window::init(void)" (?init@Fl_Gl_Window@@AAEXXZ)
> Debug/MastoidSementor.exe : fatal error LNK1120: 14 unresolved externals
> Error executing link.exe.
> 
> MastoidSementor.exe - 50 error(s), 0 warning(s)
>