[Insight-developers] Compile errors in GPUCommon
Bill Lorensen
bill.lorensen at gmail.com
Wed Jun 6 12:24:28 EDT 2012
The following code does not compile:
#include "itkGPUImageDataManager.h"
#include <cstdlib>
int main ( int , char* [] )
{
return EXIT_SUCCESS;
}
------------------
I thought I could fix it, but seems like the C++ is above my pay grade.
I get these errors on my Mac.
In file included from
/Users/lorensen/ProjectsGIT/ITK/Modules/Core/GPUCommon/include/itkGPUImageDataManager.h:36,
from
/Users/lorensen/ProjectsGIT/ITK-build/Modules/Core/GPUCommon/test/ITKGPUCommonHeaderTest5.cxx:23:
/Users/lorensen/ProjectsGIT/ITK/Modules/Core/GPUCommon/include/itkGPUImage.h:158:
error: ‘GPUDataManager’ has not been declared
/Users/lorensen/ProjectsGIT/ITK/Modules/Core/GPUCommon/include/itkGPUImage.h:158:
error: ISO C++ forbids declaration of ‘Pointer’ with no type
If I add
#include "itkGPUDataManager.h" in itkGPUImage.h I get different errors:
In file included from
/Users/lorensen/ProjectsGIT/ITK/Modules/Core/GPUCommon/include/itkGPUImageDataManager.h:36,
from
/Users/lorensen/ProjectsGIT/ITK-build/Modules/Core/GPUCommon/test/ITKGPUCommonHeaderTest5.cxx:23:
/Users/lorensen/ProjectsGIT/ITK/Modules/Core/GPUCommon/include/itkGPUImage.h:191:
error: expected nested-name-specifier before ‘GPUImageDataManager’
More information about the Insight-developers
mailing list