[Insight-users] HELP ITK builting solution

Luis Ibanez luis.ibanez at kitware.com
Sat Oct 23 13:16:27 EDT 2004


Hi Marisa,

Please check if you have configured your Visual Studio
to consider *.hxx files as compilable files.

It is a common mistake to mark them as compilable, because
in that way Visual Studio use syntax coloring on those files.

If you happen to have them marked as compilable,
then please remove that option.


   Regards,


      Luis


--------------------
Marisa Aurélio wrote:
> Hi ITK users,
> I'm trying to built my ITK visual studio solution.
> However, I get lot´s of mistakes related to the 3
> files that belong to the itksys project. Such as:
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(45)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(45)
> : error C2146: syntax error : missing ';' before
> identifier 'MakeCindentifier'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(45)
> : warning C4183: 'MakeCindentifier': missing return
> type; assumed to be a member function returning 'int'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(90)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(90)
> : error C2146: syntax error : missing ';' before
> identifier 'Capitalized'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(90)
> : error C2086: 'int itksys::SystemTools::string' :
> redefinition
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(45)
> : see declaration of 'itksys::SystemTools::string'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(90)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(90)
> : error C2143: syntax error : missing ',' before '&'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(90)
> : warning C4183: 'Capitalized': missing return type;
> assumed to be a member function returning 'int'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(95)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(95)
> : error C2146: syntax error : missing ';' before
> identifier 'LowerCase'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(95)
> : error C2086: 'int itksys::SystemTools::string' :
> redefinition
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(45)
> : see declaration of 'itksys::SystemTools::string'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(95)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(95)
> : error C2143: syntax error : missing ',' before '&'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(95)
> : warning C4183: 'LowerCase': missing return type;
> assumed to be a member function returning 'int'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(100)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(100)
> : error C2146: syntax error : missing ';' before
> identifier 'UpperCase'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(100)
> : error C2086: 'int itksys::SystemTools::string' :
> redefinition
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(45)
> : see declaration of 'itksys::SystemTools::string'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(100)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(100)
> : error C2143: syntax error : missing ',' before '&'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(100)
> : warning C4183: 'UpperCase': missing return type;
> assumed to be a member function returning 'int'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(110)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(110)
> : error C2061: syntax error : identifier 'string'
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(116)
> : error C2039: 'string' : is not a member of
> 'operator``global namespace'''
> C:\Programas\Insight\bin\Utilities\itksys\SystemTools.hxx(116)
> : error C2146: syntax error : missing ';' before
> identifier 'ConvertToOutputPath'
> 
> And so on....
> I get this mistakes in any file which needs to call
> the SystemTools.hxx file. All the mistakes are like
> this.
> It could be something related with the way I used to
> create the solution with CMake? Or, do I have to
> change  something before builting my solution?
> By the way, I'm using the 1.8.0 version with Visual
> C++ .NET
> Thanks in advance.
> Marisa
> 
> 
> 





More information about the Insight-users mailing list