[Insight-users] FLTK problem -- still struggling

Julien Jomier julien.jomier at kitware.com
Thu Jun 29 05:37:02 EDT 2006


Hi Esen,

These errors are more likely related to the include path of the FLTK 
include directory.
Are you compiling FLTK using CMake?
If this is the case, make sure that when you run CMake on 
InsightApplications the FLTK_DIR points to the FLTK binary directory.

If you still have the errors can you post the CMakeCache.txt (located at 
the top level of the InsightApplications binary directory) file.

Let us know,

Julien

Seniha Esen Yuksel wrote:
> Ok, I compiled everything from scratch and in this order ( Cmake 2.4, 
> ITK 2.8.1,  VTK 4.4.2,  FLTK 1.1.4, Insight Applications 2.8.1 ). Then I 
> compiled InsightApplications from the root directory. Then I went inside 
> the ImageViewer and typed make. Below is the errors I get. What should I 
> do now?
> Almost there.... Thanks for help!
> Esen
> 
> seyuksel/source/ITK/InsightAppli
> cations-2.8.1/ImageViewer/ImageViewer.cxx:17:
> /usr/include/c++/3.3.5/cmath:107: error: `acosf' not declared
> /usr/include/c++/3.3.5/cmath:110: error: `asinf' not declared
> /usr/include/c++/3.3.5/cmath:113: error: `atanf' not declared
> /usr/include/c++/3.3.5/cmath:116: error: `atan2f' not declared
> /usr/include/c++/3.3.5/cmath:119: error: `ceilf' not declared
> /usr/include/c++/3.3.5/cmath:122: error: `coshf' not declared
> /usr/include/c++/3.3.5/cmath:125: error: `expf' not declared
> /usr/include/c++/3.3.5/cmath:128: error: `floorf' not declared
> /usr/include/c++/3.3.5/cmath:131: error: `fmodf' not declared
> /usr/include/c++/3.3.5/cmath:134: error: `frexpf' not declared
> /usr/include/c++/3.3.5/cmath:137: error: `ldexpf' not declared
> /usr/include/c++/3.3.5/cmath:140: error: `logf' not declared
> /usr/include/c++/3.3.5/cmath:143: error: `log10f' not declared
> /usr/include/c++/3.3.5/cmath:146: error: `modff' not declared
> /usr/include/c++/3.3.5/cmath:149: error: `powf' not declared
> /usr/include/c++/3.3.5/cmath:152: error: `sinhf' not declared
> /usr/include/c++/3.3.5/cmath:155: error: `tanf' not declared
> /usr/include/c++/3.3.5/cmath:158: error: `tanhf' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::acos(float)':
> /usr/include/c++/3.3.5/cmath:184: error: `acosf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:190: error: `acos' not declared
> /usr/include/c++/3.3.5/cmath: In function `long double std::acos(long 
> double)':
> /usr/include/c++/3.3.5/cmath:194: error: `::acosl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:200: error: `asin' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::asin(float)':
> /usr/include/c++/3.3.5/cmath:204: error: `asinf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::asin(long 
> double)':
> /usr/include/c++/3.3.5/cmath:212: error: `::asinl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:218: error: `atan' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::atan(float)':
> /usr/include/c++/3.3.5/cmath:222: error: `atanf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::atan(long 
> double)':
> /usr/include/c++/3.3.5/cmath:230: error: `::atanl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:236: error: `atan2' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::atan2(float, float)':
> /usr/include/c++/3.3.5/cmath:240: error: `atan2f' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::atan2(long 
> double,
>    long double)':
> /usr/include/c++/3.3.5/cmath:249: error: `::atan2l' undeclared (first 
> use here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:256: error: `ceil' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::ceil(float)':
> /usr/include/c++/3.3.5/cmath:260: error: `ceilf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::ceil(long 
> double)':
> /usr/include/c++/3.3.5/cmath:268: error: `::ceill' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:274: error: `cos' not declared
> /usr/include/c++/3.3.5/cmath:284: error: `cosh' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::cosh(float)':
> /usr/include/c++/3.3.5/cmath:288: error: `coshf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::cosh(long 
> double)':
> /usr/include/c++/3.3.5/cmath:296: error: `::coshl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:302: error: `exp' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::exp(float)':
> /usr/include/c++/3.3.5/cmath:306: error: `expf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::exp(long 
> double)':
> /usr/include/c++/3.3.5/cmath:314: error: `::expl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:320: error: `fabs' not declared
> /usr/include/c++/3.3.5/cmath:330: error: `floor' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::floor(float)':
> /usr/include/c++/3.3.5/cmath:334: error: `floorf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::floor(long 
> double)
>    ':
> /usr/include/c++/3.3.5/cmath:342: error: `::floorl' undeclared (first 
> use here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:348: error: `fmod' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::fmod(float, float)':
> /usr/include/c++/3.3.5/cmath:352: error: `fmodf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::fmod(long 
> double,
>    long double)':
> /usr/include/c++/3.3.5/cmath:361: error: `::fmodl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:368: error: `frexp' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::frexp(float, int*)':
> /usr/include/c++/3.3.5/cmath:372: error: `frexpf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::frexp(long 
> double,
>    int*)':
> /usr/include/c++/3.3.5/cmath:380: error: `::frexpl' undeclared (first 
> use here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:387: error: `ldexp' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::ldexp(float, int)':
> /usr/include/c++/3.3.5/cmath:391: error: `ldexpf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::ldexp(long 
> double,
>    int)':
> /usr/include/c++/3.3.5/cmath:400: error: `::ldexpl' undeclared (first 
> use here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:407: error: `log' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::log(float)':
> /usr/include/c++/3.3.5/cmath:411: error: `logf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::log(long 
> double)':
> /usr/include/c++/3.3.5/cmath:419: error: `::logl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:425: error: `log10' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::log10(float)':
> /usr/include/c++/3.3.5/cmath:429: error: `log10f' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::log10(long 
> double)
>    ':
> /usr/include/c++/3.3.5/cmath:437: error: `::log10l' undeclared (first 
> use here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:443: error: `modf' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::modf(float, float*)':
> /usr/include/c++/3.3.5/cmath:447: error: `modff' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::modf(long 
> double,
>    long double*)':
> /usr/include/c++/3.3.5/cmath:461: error: `::modfl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:482: error: `pow' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::pow(float, float)':
> /usr/include/c++/3.3.5/cmath:486: error: `powf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::pow(long double,
>    long double)':
> /usr/include/c++/3.3.5/cmath:495: error: `::powl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:514: error: `sin' not declared
> /usr/include/c++/3.3.5/cmath:524: error: `sinh' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::sinh(float)':
> /usr/include/c++/3.3.5/cmath:528: error: `sinhf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::sinh(long 
> double)':
> /usr/include/c++/3.3.5/cmath:536: error: `::sinhl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:542: error: `sqrt' not declared
> /usr/include/c++/3.3.5/cmath:552: error: `tan' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::tan(float)':
> /usr/include/c++/3.3.5/cmath:556: error: `tanf' undeclared in namespace `
> 
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::tan(long 
> double)':
> /usr/include/c++/3.3.5/cmath:564: error: `::tanl' undeclared (first use 
> here)
> /usr/include/c++/3.3.5/cmath: At global scope:
> /usr/include/c++/3.3.5/cmath:570: error: `tanh' not declared
> /usr/include/c++/3.3.5/cmath: In function `float std::tanh(float)':
> /usr/include/c++/3.3.5/cmath:574: error: `tanhf' undeclared in namespace `
>    __gnu_cxx::__c99_binding'
> /usr/include/c++/3.3.5/cmath: In function `long double std::tanh(long 
> double)':
> /usr/include/c++/3.3.5/cmath:582: error: `::tanhl' undeclared (first use 
> here)
> In file included from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkVector.txx:22,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkVector.h:275,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkPoint.h:23,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkContinuousIndex.h:20,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkImageRegion.h:27,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkImageBase.h:25,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/Common/itkImage.h:20,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightAppli
> cations-2.8.1/ImageViewer/ImageViewer.cxx:19:
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h: In
>    function `double vnl_math_cuberoot(double)':
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h:218: error: call
>    of overloaded `log(double)' is ambiguous
> /usr/include/c++/3.3.5/cmath:411: error: candidates are: float 
> std::log(float)
> /usr/include/c++/3.3.5/cmath:419: error:                 long double
>    std::log(long double)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h:218: error: call
>    of overloaded `log(double&)' is ambiguous
> /usr/include/c++/3.3.5/cmath:411: error: candidates are: float 
> std::log(float)
> /usr/include/c++/3.3.5/cmath:419: error:                 long double
>    std::log(long double)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h: In
>    function `double vnl_math_hypot(int, int)':
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h:221: error: call
>    of overloaded `sqrt(double)' is ambiguous
> /usr/include/c++/3.3.5/cmath:546: error: candidates are: float 
> std::sqrt(float)
> /usr/include/c++/3.3.5/cmath:550: error:                 long double
>    std::sqrt(long double)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h: In
>    function `float vnl_math_hypot(float, float)':
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h:222: error: call
>    of overloaded `sqrt(double)' is ambiguous
> /usr/include/c++/3.3.5/cmath:546: error: candidates are: float 
> std::sqrt(float)
> /usr/include/c++/3.3.5/cmath:550: error:                 long double
>    std::sqrt(long double)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h: In
>    function `double vnl_math_hypot(double, double)':
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Utilities/vxl
> /core/vnl/vnl_math.h:223: error: call
>    of overloaded `sqrt(double)' is ambiguous
> /usr/include/c++/3.3.5/cmath:546: error: candidates are: float 
> std::sqrt(float)
> /usr/include/c++/3.3.5/cmath:550: error:                 long double
>    std::sqrt(long double)
> In file included from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolk
> it-2.8.1/Code/IO/itkImageFileReader.h:25,
>                  from 
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightAppli
> cations-2.8.1/ImageViewer/ImageViewer.cxx:20:
> /usr/include/c++/3.3.5/complex: In function `_Tp std::abs(const
>    std::complex<_Tp>&) [with _Tp = double]':
> /usr/include/c++/3.3.5/complex:450:   instantiated from `static _Tp 
> std::_Norm_h
> elper<true>::_S_do_it(const std::complex<_Tp>&) [with _Tp = double]'
> /usr/include/c++/3.3.5/complex:459:   instantiated from `_Tp 
> std::norm(const std
> ::complex<_Tp>&) [with _Tp = double]'
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightToolkit-2.8.1/Code/IO/itkDe
> faultConvertPixelTraits.h:240:   instantiated from here
> /usr/include/c++/3.3.5/complex:419: error: call of overloaded 
> `sqrt(double)' is
>    ambiguous
> /usr/include/c++/3.3.5/cmath:546: error: candidates are: float 
> std::sqrt(float)
> /usr/include/c++/3.3.5/cmath:550: error:                 long double
>    std::sqrt(long double)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightApplications-2.8.1/Auxiliar   
> y/FltkImageViewer/GLSliceView.h: In
>    member function `void itk::GLSliceView<ImagePixelType,
>    OverlayPixelType>::update() [with ImagePixelType = float, 
> OverlayPixelType =
>    unsigned char]':
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightApplications-2.8.1/ImageVie   
> wer/ImageViewer.cxx:109:   instantiated from here
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightApplications-2.8.1/Auxiliar   
> y/FltkImageViewer/GLSliceView.h:506: error: `
>    fabs' undeclared (first use this function)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightApplications-2.8.1/Auxiliar   
> y/FltkImageViewer/GLSliceView.h:506: error: (Each
>    undeclared identifier is reported only once for each function it appears
>    in.)
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightApplications-2.8.1/ImageVie   
> wer/ImageViewer.cxx:109:   instantiated from here
> /cise/research51/cvgmi_04/seyuksel/source/ITK/InsightApplications-2.8.1/Auxiliar   
> y/FltkImageViewer/GLSliceView.h:625: error: `
>    log' undeclared (first use this function)
> make[2]: *** [ImageViewer/CMakeFiles/ImageViewer.dir/ImageViewer.o] Error 1
> make[1]: *** [ImageViewer/CMakeFiles/ImageViewer.dir/all] Error 2
> make: *** [all] Error 2
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Get on board. You're invited 
> <http://us.rd.yahoo.com/evt=40791/*http://advision.webevents.yahoo.com/handraisers> 
> to try the new Yahoo! Mail Beta.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list