[Insight-users] building itk: iostream error

Zoltan Seress seress.zoltan at gmail.com
Wed Aug 12 08:09:38 EDT 2009


Hi all,

I use Ubuntu 9.04 (Jaunty Jackalope) and my g++ version 4.3.3.
When I'm trying to compile itk, I get the following error messages:

Warning: turning off implicit template instantiation
-- Found UUID: /usr/lib/libuuid.so
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/vulcanos/dev/InsightToolkit-3.14.0
[  0%] Building CXX object Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o
In file included from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/stl/string.hxx:31,
                 from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/stl/string:51,
                 from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/kwsys/Directory.cxx:19:
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:28:23:
error: iostream.h: No such file or directory
In file included from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/stl/string.hxx:31,
                 from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/stl/string:51,
                 from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/kwsys/Directory.cxx:19:
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:69:
error: ‘::ostream’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:70:
error: ‘::istream’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:71:
error: ‘::ios’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:72:
error: ‘::endl’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:73:
error: ‘::flush’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:77:
error: ‘::cin’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:82:
error: ‘::cout’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:87:
error: ‘::cerr’ has not been declared
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/ios/iostream:92:
error: ‘::clog’ has not been declared
In file included from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/stl/string:51,
                 from
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/kwsys/Directory.cxx:19:
/home/vulcanos/dev/InsightToolkit-3.14.0/Utilities/itksys/stl/string.hxx:39:
error: expected initializer before ‘&’ token
make[2]: *** [Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o] Error 1
make[1]: *** [Utilities/kwsys/CMakeFiles/itksys.dir/all] Error 2
make: *** [all] Error 2


First:
Has the ccmake warning "turning off implicit template instantiation" any
relevant meaning?

Second:
The itksys/ios/iostream contains:

#if itksys_IOS_USE_ANSI
# include <iostream>
#else
# include <iostream.h>
#endif

In itksys/Configure.hxx:

#define itksys_IOS_USE_ANSI 0

Would not it be good to turn that to 1? As we know iostream.h is deprecated.
How can be do that?

Cheers,
-- 
Zoltan Seress
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090812/1a39029a/attachment-0001.htm>


More information about the Insight-users mailing list