[Insight-users] Re: Solution for ITK FAQ item 5.7
Luis Ibanez
luis.ibanez@kitware.com
Tue May 4 03:12:40 EDT 2004
Hi Stefan,
This look like a configuration problem.
Did you setup the environment variables
CC and CXX before running CMake ?
Do you have multiple GCC compilers installed
in your system. ?
Please let us know,
Thanks
----
Just for the record, ITK 1.4 is quite old.
Version 1.6 was released in February, and
Version 1.8 is scheduled to be released by
August.
----------------------
Stefan Haun wrote:
> Hi,
>
> I have read the FAQ to solve some problems compiling ITK and found item 5.7.
> Unfortunately I am not able to make comments, so I'm sending you an e-mail.
>
> I've experienced this error with itk 1.4 and Linux. The problem was:
> cmake (or whatever) seems to generate configuration-scripts in DOS-formats
> (no rights set and hard line breaks).
>
> Converting the configure-file of VXL solved my problem. Maybe this could
> help for Mac X, too.
>
>
> Maybe you could also help me with my compiling problem? I've attached the
> error log.
>
> Greetings,
> Stefan
>
>
> ------------------------------------------------------------------------
>
> In file included from /usr/include/c++/3.3/backward/iostream.h:31,
> from /home/tux/Projekte/spatz/itk_1.4/Utilities/itksys/std/iostream:30,
> from /home/tux/Projekte/spatz/itk_1.4/Utilities/kwsys/SystemTools.cxx:20:
> /usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
> In file included from /home/tux/Projekte/spatz/itk_1.4/Utilities/itksys/std/iostream:30,
> from /home/tux/Projekte/spatz/itk_1.4/Utilities/kwsys/SystemTools.cxx:20:
> /usr/include/c++/3.3/backward/iostream.h:35: error: `ostream' is already
> declared in this scope
> /usr/include/c++/3.3/backward/iostream.h:35: error: using declaration `ostream'
> introduced ambiguous type `ostream'
> /usr/include/c++/3.3/backward/iostream.h:36: error: `istream' is already
> declared in this scope
> /usr/include/c++/3.3/backward/iostream.h:36: error: using declaration `istream'
> introduced ambiguous type `istream'
> /usr/include/c++/3.3/backward/iostream.h:37: error: `ios' is already declared
> in this scope
> /usr/include/c++/3.3/backward/iostream.h:37: error: using declaration `ios'
> introduced ambiguous type `ios'
> In file included from /home/tux/Projekte/spatz/itk_1.4/Utilities/itksys/std/fstream:30,
> from /home/tux/Projekte/spatz/itk_1.4/Utilities/kwsys/SystemTools.cxx:21:
> /usr/include/c++/3.3/backward/fstream.h:35: error: `ifstream' is already
> declared in this scope
> /usr/include/c++/3.3/backward/fstream.h:35: error: using declaration `ifstream'
> introduced ambiguous type `ifstream'
> /usr/include/c++/3.3/backward/fstream.h:36: error: `ofstream' is already
> declared in this scope
> /usr/include/c++/3.3/backward/fstream.h:36: error: using declaration `ofstream'
> introduced ambiguous type `ofstream'
> /usr/include/c++/3.3/backward/fstream.h:37: error: `fstream' is already
> declared in this scope
> /usr/include/c++/3.3/backward/fstream.h:37: error: using declaration `fstream'
> introduced ambiguous type `fstream'
> make[5]: *** [SystemTools.o] Error 1
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_kwsys] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Utilities] Error 2
> make: *** [default_target] Error 2
More information about the Insight-users
mailing list