[Insight-users] Namespaces Problem

Bill Hoffman bill . hoffman at kitware . com
Wed, 21 Aug 2002 09:19:17 -0400


I would suggest that you try commenting out each of these:
#include "stdafx.h"
#include "osirislight.h"
#include "VtkItkConnector.h"

One at a time, and try to figure out which one is causing the problem.

-Bill


At 02:25 PM 8/21/2002 +0200, martin.garcia@epfl.ch wrote:
>Here you have the files, I think there is no namespace definition in my project.
>
>
>
>> Hi Martin,
>> 
>> We just tried jour code snippet.
>> 
>> It works fine when the includes:
>> 
>>    #include "stdafx.h"
>>    #include "osirislight.h"
>>    #include "VtkItkConnector.h"
>> 
>> are commented out.
>> 
>> There should be a wrong usage of
>> namespaces inside one of these files.
>> 
>> Could you please post those files ?
>> or at least verify the namespaces
>> are used correctly inside.
>> 
>> One common error is to declare a namespace
>> and let it open (e.g. miss the closing bracket)
>> 
>> like:
>> 
>> namespace  MyOpenNamespace {
>> 
>> ///....
>> 
>> // unmatching  -> }
>> 
>> 
>> 
>> ----
>> 
>> Please find attached the CMakeList.txt file
>> and the variation of your code that we tested
>> here.
>> 
>> Thanks,
>> 
>> 
>> Luis
>> 
>> 
>> =====================================
>> 
>> martin.garcia@epfl.ch wrote:
>> > Hi ,
>> > 
>> > I'm working with VC++6.0 (sp 6), and I'm trying to integrate itk 
>> > functionalities to my project, but when I use namespaces, I always have the
>> 
>> > following compilation error
>> > 
>> 
>
>
>
>
>-------------------------------------------------
>This mail sent through IMP: http://horde.org/imp/
>
>