[Insight-users] Build problem on Mac OS 10.6?
McCaughey, Michael J
michael.j.mccaughey at Vanderbilt.Edu
Mon Feb 15 10:49:16 EST 2010
Hi!
I'm trying to build version 2.0.1 on a Mac (OS/X 10.6.2/dual Quad-Core Xeon/16GB/gcc 4.2.1/cmake 2.6-2) and I'm getting the following error compiling Directory.cxx:
[ 5%] Building C object Utilities/kwsys/CMakeFiles/itksys.dir/Base64.o
[ 5%] Building CXX object Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:30: error: ISO C++ forbids declaration of ‘vector’ with no type
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:30: error: invalid use of ‘::’
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:30: error: expected ‘;’ before ‘<’ token
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:33: error: ‘string’ in namespace ‘::’ does not name a type
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx: In member function ‘long unsigned int itksys::Directory::GetNumberOfFiles()’:
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:51: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’
Installs/InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx: In member function ‘const char* itksys::Directory::GetFile(long unsigned int)’:
Installs/InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:57: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:61: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx: In member function ‘bool itksys::Directory::Load(const char*)’:
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:145: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’
InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:147: error: ‘class itksys::DirectoryInternals’ has no member named ‘Path’
make[2]: *** [Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o] Error 1
make[1]: *** [Utilities/kwsys/CMakeFiles/itksys.dir/all] Error 2
make: *** [all] Error 2
Google has not been my friend so far, has anyone seen this error? Is it gcc's problem?
Thanks for suggestions.
Mike
More information about the Insight-users
mailing list