[Insight-users] HELP ITK builting solution : Visual Studio .NET
: checking if txx, hxx are marked as C++ files
Luis Ibanez
luis.ibanez at kitware.com
Mon Oct 25 17:18:57 EDT 2004
Hi Marisa,
If you are using Visual Studio .NET,
please do the following:
1) Go to the "Tools" menu in the top bar
2) Select "Options..."
3) Select the tab "Projects"
4) Select the option "VC++ Build"
5) Look at the field: "C/C++ File Extensions"
You should only have there the following extensions
*.cpp; *.cxx; *.cc *.c
if you find any *.txx or *.hxx you must remove them
from that list.
6) Click "OK" when you are done.
Regards,
Luis
--------------------
Marisa Aurélio wrote:
> Hi Luis,
> Thanks, but where am I suppose to do that?
> I know how to say that I don't want to include a file
> during the builting proccess.
> But, where should I go and say that all .hxx files
> aren't compilable files?
>
> Thanks again,
> Marisa
>
> --- Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>
>>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
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
>
>
More information about the Insight-users
mailing list