[Insight-users] FLTK Compiling error

Yuanshui yzheng@med.unc.edu
Mon, 3 Feb 2003 10:09:48 -0500


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

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



Hi Yanshui,

The only suspicious thing I can see is the
FL_EXPORT macro in this header file. This
macro definition is intended only for
Windows DLLs.

It looks like you were working with Cygwin
on Windows and trying to use gcc.2.95 to
build FLTK....

Is this the case ?

This is tricky since you have to decide if
you use FLTK as a X11 application under Cygwin
or you use it as a Windows library compiled
with VC++.


What is your platform.  ?
Did you build FLTK without problem ?
E.g. do the demos distributed with FLTK work ?


This doesn't seem to be related with ITK at all...


Please let us know the details of your platform.
(It will be great if all the posts to the list
contain by default this minimal information....)



   Thanks



     Luis



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

Yuanshui wrote:

> Thanks for the response. Below is the version information:
>
> FLTK 1.0.11
> g++ 2.95
>
> The error is produced when I compile one of my c++ program (viewer.cpp),
in
> which there is a line #include <Fl_Slider.H>
>
> Thanks again,
>
> Yuanshui
>
> -----Original Message-----
> From: Stephen R. Aylward [mailto:aylward@unc.edu]
> Sent: Friday, January 31, 2003 6:40 PM
> To: Luis Ibanez
> Cc: Yuanshui; insight-users@public.kitware.com
> Subject: Re: [Insight-users] FLTK Compiling error
>
>
> Also - what version of g++ are you using?
>
> Stephen
>
> Luis Ibanez wrote:
>
>>Hi Yuanshui,
>>
>>
>>This error message doesn't look familiar,
>>
>>
>>Could you please give us more details.
>>
>>
>>What version of FLTK are you using ?
>>
>>Is this error produced while compiling ITK ?
>>
>>If this is the case, can you identify what
>>directory is being compiler when the error
>>appears ?
>>
>>
>>
>>Please let us know,
>>
>>
>>
>>   Thanks
>>
>>
>>   Luis
>>
>>
>>-----------------------------------
>>
>>Yuanshui wrote:
>>
>>
>>>Hello,
>>>
>>>I got a compiling error when I compile a c++ file using some fltk
>>>class. The
>>>error message is like below:
>>>
>>>".../FL/Fl_Valuator.H:84:parse error before 'int'"
>>>
>>>g++ is used to compile. Could any of you help me on this?
>>>
>>>Thank you very much,
>>>
>>>Yuanshui
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users@public.kitware.com
>>>http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>>
>>>
>>
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-users
>>
>
>
> --
> ===============================================
> Dr. Stephen R. Aylward
> Assistant Professor of Radiology
> Adjunct Assistant Professor of Computer Science
> http://caddlab.rad.unc.edu
> aylward@unc.edu
> (919) 966-9695
>
>
>