[Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake.

Julien Jomier jjomier at cs . unc . edu
Tue, 6 Aug 2002 13:28:44 -0400


Hi Zhao,

Could you try to clean/recompile ?
This looks like a mix of compilations.

Julien

----- Original Message -----
From: "zhao" <zhao_c_g@263.net>
To: "Julien Jomier" <jjomier@cs.unc.edu>; "itk"
<insight-users@public.kitware.com>
Sent: Wednesday, November 21, 2001 11:00 AM
Subject: Re: Re: Re: [Insight-users] A problem about FLTK_BASE_LIBRARY
option in CMake.


Many thanks, Julien. You are right, the problem are solved:)

But things are always not ready to satisfy you completely. Another problem,
I think it's the final one, is:

___________________________________________________
Linking...
fltk.lib(Fl_Group.obj) : error LNK2005: "public: void __thiscall
Fl_Group::end(void)" (?end@Fl_Group@@QAEXXZ) already defined in
FltkImageViewer.lib(fltkSphereFunctionControlGUI.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
E:\Visual
Human\ITKSourceWin32Beta2\InsightBeta2\Debug/RawImageReaderViewer.exe :
fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
RawImageReaderViewer.exe - 2 error(s), 5 warning(s)
____________________________________________________

thanks again.
zhao


>Hi Zhao,
>
>This looks familiar...
>Did you specify the fltk include directory in CMake as
>...\fltk-1.0.11\ ?
>(I guess you set ...\fltk-1.0.11\FL\)
>
>If you include fltk-x.x.xx\FL\ , the compiler will include
>Fl\math.h as the default math.h (and not the correct one),
>I think that's the problem.
>
>Let me know if it works
>
>Julien
>
>----- Original Message -----
>From: "zhao" <zhao_c_g@263.net>
>To: "itk" <insight-users@public.kitware.com>
>Sent: Wednesday, November 21, 2001 9:41 AM
>Subject: Re: Re: [Insight-users] A problem about FLTK_BASE_LIBRARY option
in
>CMake.
>
>
>Thanks, Julien.
>
>But the compiling errors still exist. They are as follows(under MSVC6.0):
>
>--------------------Configuration: RawImageReaderViewer - Win32
>Debug--------------------
>
>Performing Custom Build Step on "E:\Visual
>Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderViewer\itkRaw
I
>mageReaderViewerGUI.fl"
>Performing Custom Build Step on "E:\Visual
>Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderViewer\CMakeL
i
>sts.txt"
>
>Compiling...
>RawImageReaderViewer.cxx
>E:\Visual Human\fltk-1.0.11\fltk-1.0.11\FL\math.h(52) : error C2065:
'floor'
>: undeclared identifier
>E:\Visual
>Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl_math.h(149
)
>: error C2039: 'sqrt' : is not a member of '`global namespace''
>E:\Visual
>Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl_math.h(149
)
>: error C2065: 'sqrt' : undeclared identifier
>E:\Visual
>Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl_math.h(153
)
>: error C2039: 'exp' : is not a member of '`global namespace''
>.....
>.....
>.....
>.....
>
>'floor' is a function decleared in system file math.h, which is included by
>...\FL\math.h. So, I think the first error about 'floor' are not
reasonable.
>What's wrong?
>
>The other two errors is about two routines, i.e., "sqrt", "exp". But these
>two functions really are not in the file of "vnl_math.h"
>
>Who has ever encountered the similar problem? Thanks in advance for your
>help.
>
>>Hi Zhao,
>>
>>FLTK_BASE_LIBRARY means the main library of FLTK,
>>(i.e. fltk.lib under windows and fltk.a under linux)
>>
>>You must select, in your case,
>>...\fltk-1.0.11\lib\Release\fltk.lib
>>
>>Hope this helps
>>
>>Julien
>>
>>----- Original Message -----
>>From: "zhao" <zhao_c_g@263.net>
>>To: "itk" <insight-users@public.kitware.com>
>>Sent: Wednesday, November 21, 2001 4:21 AM
>>Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY option in
CMake.
>>
>>
>>> Hi All,
>>>
>>> I encountered many compiling errors with the example of
>>"RawImageReaderViewer". Maybe some options I set in CMake are not correct.
>>Not knowing what FLTK_BASE_LIBRARY means, I just selected
>>...\fltk-1.0.11\lib\fltkdlld.exp. Is it correct? Thanks for any reply.
>>>
>>> Regards,
>>> Zhao
>>>
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users@public.kitware.com
>>> http://public.kitware.com/mailman/listinfo/insight-users
>
>= = = = = = = = = = = = = = = = = = = =
>
>
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
>Àñ£¡
>
>
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhao
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhao_c_g
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2001-11-21
>
>
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users

= = = = = = = = = = = = = = = = = = = =


¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
Àñ£¡


¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhao
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhao_c_g
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2001-11-21



_______________________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users