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

zhao zhao_c_g at 263.net
Wed Nov 21 08:41:57 EST 2001


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\itkRawImageReaderViewerGUI.fl"
Performing Custom Build Step on "E:\Visual Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderViewer\CMakeLists.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 at 263.net>
>To: "itk" <insight-users at 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 at public.kitware.com
>> http://public.kitware.com/mailman/listinfo/insight-users

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

        致
礼!
 
				 
        zhao
        zhao_c_g
          2001-11-21






More information about the Insight-users mailing list