[Insight-users] Using ITK
Luis Ibanez
luis.ibanez at kitware.com
Sun Jun 1 14:26:43 EDT 2008
Hi Alexandre,
Thanks for posting the error message.
1) The first group of errors look like a problem with
your compiler:
>
/Users/alex/Documents/ProjectXCodeFolder/IntermediateBuildFiles/Essai1Interface.build/Debug/Essai1Interface.build/Objects-normal/i386/CKernel.o
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error:
> '::tm' has not been declared
2) The errors in VNL make us wonder about the ITK
version that you are using, because:
MonInsight/include/InsightToolkit/Utilities/vxl/core/vnl/algo/vnl_c_vector.h:
the file:
vnl_c_vector.h
is not currenly in the "algo" subdirectory of vxl/core/vnl.
(it has been located in vxl/core/vnl since ITK 2.0).
What version of ITK are you using ?
Please let us know,
Thanks
Luis
--------------------------
alexandre govignon wrote:
> Excuse me...
>
> that's the error message
> cd /Users/alex/Documents/Essai1Interface
> /Developer/usr/bin/gcc-4.0 -x objective-c++ -arch i386 -pipe
> -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type
> -Wunused-variable -fmessage-length=0 -fvisibility-inlines-hidden
> -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2
> -I/Users/alex/Documents/ProjectXCodeFolder/IntermediateBuildFiles/Essai1Interface.build/Debug/Essai1Interface.build/Essai1Interface.hmap
> -F/Users/alex/Documents/ProjectXCodeFolder/BuildProducts/Debug
> -F/Users/alex/Documents/Essai1Interface/../ProjectXCodeFolder/BuildProducts/Development
> -I/Users/alex/Documents/ProjectXCodeFolder/BuildProducts/Debug/include
> -I/Users/alex/Documents/ProjectXCodeFolder/IntermediateBuildFiles/Essai1Interface.build/Debug/Essai1Interface.build/DerivedSources
> -isysroot /Developer/SDKs/MacOSX10.5.sdk -include
> /Library/Caches/com.apple.Xcode.507/SharedPrecompiledHeaders/Essai1Interface_Prefix-fgsvjdfthqivteeyrptasbveiimc/Essai1Interface_Prefix.pch
> -c /Users/alex/Documents/Essai1Interface/CKernel.mm -o
> /Users/alex/Documents/ProjectXCodeFolder/IntermediateBuildFiles/Essai1Interface.build/Debug/Essai1Interface.build/Objects-normal/i386/CKernel.o
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error:
> '::tm' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error:
> '::clock' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error:
> '::difftime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error:
> '::mktime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error:
> '::time' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error:
> '::asctime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error:
> '::ctime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error:
> '::gmtime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error:
> '::localtime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error:
> '::strftime' has not been declared
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:
> In member function '_InIter std::time_get<_CharT,
> _InIter>::_M_extract_via_format(_InIter, _InIter, std::ios_base&,
> std::_Ios_Iostate&, tm*, const _CharT*) const':
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:
> In member function 'virtual _InIter std::time_get<_CharT,
> _InIter>::do_get_weekday(_InIter, _InIter, std::ios_base&,
> std::_Ios_Iostate&, tm*) const':
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:
> In member function 'virtual _InIter std::time_get<_CharT,
> _InIter>::do_get_monthname(_InIter, _InIter, std::ios_base&,
> std::_Ios_Iostate&, tm*) const':
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:
> In member function 'virtual _InIter std::time_get<_CharT,
> _InIter>::do_get_year(_InIter, _InIter, std::ios_base&,
> std::_Ios_Iostate&, tm*) const':
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230:
> error: invalid use of undefined type 'struct tm'
> /Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward
> declaration of 'struct tm'
> /Users/alex/Documents/Essai1Interface/../MonInsight/include/InsightToolkit/Utilities/vxl/core/vnl/algo/vnl_c_vector.h:
> At global scope:
> /Users/alex/Documents/Essai1Interface/../MonInsight/include/InsightToolkit/Utilities/vxl/core/vnl/algo/vnl_c_vector.h:150:
> error: 'vcl_generic_iosfwd_STD' has not been declared
> /Users/alex/Documents/Essai1Interface/../MonInsight/include/InsightToolkit/Utilities/vxl/core/vnl/algo/vnl_c_vector.h:150:
> error: expected constructor, destructor, or type conversion before '&'
>
> thank you for your help
>
More information about the Insight-users
mailing list