[Insight-users] Compile error related to FLTK in Visual C++

Julien Jomier jjomier@cs.unc.edu
Wed, 20 Nov 2002 14:56:13 -0500


Hi Steve,

This is a problem with FLTK.
The version recommended with ITK is fltk1.1.0

However, if you want to go with the most recent
FLTK version, Sebastien Barre found
a fix in FLTK that will get rid of the problem you
are reporting.

In the file

           Fl_win32.cxx

you can comment out the line #75 and recompile FLTK.
This should take care of the problem.

The group of lines look like:

#if !defined(__GNUC__)
#  define USE_TRACK_MOUSE   <-- COMMENT THIS
#endif // !__GNUC__

Hope this helps

Julien

-----Original Message-----
From: insight-users-admin@public.kitware.com
[mailto:insight-users-admin@public.kitware.com] On Behalf Of Steve Boyd
Sent: Wednesday, November 20, 2002 2:35 PM
To: insight-users@public.kitware.com
Subject: [Insight-users] Compile error related to FLTK in Visual C++



Hi,

I'm building ITK for the first time (v1.0.0), including FLTK (v1.1.1). 
After creating my workspace file with Cmake and compiling, I got the
following error regarding an unresolved external error during linking.  

Should I be using a different version of FLTK?  Any other suggestions to
resolve the problem?

Sincerely,

Steve

--------------------Configuration: DistanceMapFilter - Win32
Debug--------------------
Linking...
   Creating library C:\Documents and Settings\User\My
Documents\pack\bin\itk\bin\Debug/DistanceMapFilter.lib and object
C:\Documents and Settings\User\My
Documents\pack\bin\itk\bin\Debug/DistanceMapFilter.exp
fltkd.lib(Fl_x.obj) : error LNK2001: unresolved external symbol
__imp___TrackMouseEvent@4 C:\Documents and Settings\User\My
Documents\pack\bin\itk\bin\Debug/DistanceMapFilter.exe : fatal error
LNK1120: 1 unresolved externals
Error executing link.exe.

ALL_BUILD - 2 error(s), 0 warning(s)
_______________________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users