[Insight-users] building itk: iostream error

Bill Lorensen bill.lorensen at gmail.com
Wed Aug 12 11:16:43 EDT 2009


Are you building in the source directory? If so, try creating a build
directory and run cmake in that build directory. Also, if this is the
case, you should remove the source directory and reload itk since the
source tree will be populated with some build information.

If you are building in a separate directory, was it completely empty
when you ran cmake?

Bill

On Wed, Aug 12, 2009 at 8:09 AM, Zoltan Seress<seress.zoltan at gmail.com> wrote:
>
> 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
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list