[Insight-users] FLTK Compiling error

Yuanshui yzheng@med.unc.edu
Wed, 5 Feb 2003 10:29:45 -0500


Hi Luis,

Thank you for your suggestion. I removed the old FLTK1.0.11 and installed
fltk1.1.2. The installation was successful except that there were some
warning messages like:

"/usr/openwin/include/X11/Xutil.h:56: Warning: ignoring pragma."

Also, the demo program provided by FLTK runs OK. However, I still got the
same error message:

yzheng@Selenium(100) NLM/testtool> make
g++ -DHAVE_CONFIG_H -g -c -I/usr/local/include -I/usr/local/include/dcmimgle
 -I/usr/local/include/ofstd -I/usr/local/include/dcmdata viewer.cpp
In file included from /usr/local/include/FL/Fl_Slider.H:30,
                 from rateLesionUI.h:10,
                 from viewer.h:3,
                 from viewer.cpp:38:
/usr/local/include/FL/Fl_Valuator.H:75: parse error before `int'
make: *** [viewer.o] Error 1

Any idea? I would really appreciate your help.

Yuanshui



-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez@kitware.com]
Sent: Monday, February 03, 2003 11:23 AM
To: Yuanshui
Cc: Stephen R. Aylward; insight-users@public.kitware.com
Subject: Re: [Insight-users] FLTK Compiling error



Hi Yuanshui

It looks like FLTK is not correctly build
in your system.

FLTK is a fairly compact package. I would
suggest you to wipe out the directory and
rebuild FLTK from scratch. This will take
you about 15 minutes...

Make sure that you use the same compiler
you want to use for building ITK.


Regards,


   Luis


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

Yuanshui wrote:
> Luis,
>
> It is a Sun Solaris 2.8 Operation System on a SUN workstation. I am not
sure
> whether the FLTK was built correctly, as it was built by my former
> colleague. However, it worked when I only used other classes (not
Fl_Slider,
> which inherits from Fl_Valuator). Please let me know if you need any
further
> information. Thank you,
>
> Yuanshui
>