Make problems with 2.1 and MBP Having a heck of a time getting this to install

So trying to install CUDA 2.1 on my MBP w/ 10.5.6. Everything goes well, installed the toolkit with .kext, added the lines to .bash_profile, installed the SDK. When I try to make the examples, get the following errors:

[font=“Courier New”]MigoBookPro:~ migo$ cd /Developer/CUDA/ && make
In file included from src/bank_checker.cpp:33:
./…/common/inc/bank_checker.h:36:20: error: iostream: No such file or directory
./…/common/inc/bank_checker.h:37:19: error: sstream: No such file or directory
./…/common/inc/bank_checker.h:38:15: error: map: No such file or directory
./…/common/inc/bank_checker.h:39:18: error: vector: No such file or directory
./…/common/inc/bank_checker.h:40:18: error: limits: No such file or directory
./…/common/inc/bank_checker.h:77: error: expected unqualified-id before ‘&’ token
./…/common/inc/bank_checker.h:77: error: expected ‘,’ or ‘…’ before ‘&’ token
./…/common/inc/bank_checker.h:78: error: ISO C++ forbids declaration of ‘parameter’ with no type
./…/common/inc/bank_checker.h:90: error: ‘string’ in namespace ‘std’ does not name a type
./…/common/inc/bank_checker.h:102: error: expected unqualified-id before ‘&’ token
./…/common/inc/bank_checker.h:102: error: expected ‘,’ or ‘…’ before ‘&’ token
./…/common/inc/bank_checker.h:104: error: ISO C++ forbids declaration of ‘parameter’ with no type
./…/common/inc/bank_checker.h:119: error: ISO C++ forbids declaration of ‘KeyType’ with no type
./…/common/inc/bank_checker.h:119: error: ‘KeyType’ declared as an ‘inline’ field
./…/common/inc/bank_checker.h:119: error: expected ‘;’ before ‘&’ token
./…/common/inc/bank_checker.h:131: error: ISO C++ forbids declaration of ‘string’ with no type
./…/common/inc/bank_checker.h:131: error: invalid use of ‘::’
./…/common/inc/bank_checker.h:131: error: expected ‘;’ before ‘&’ token
./…/common/inc/bank_checker.h:137: error: expected ;' before ‘const’ ./../common/inc/bank_checker.h:153: error: ‘string’ in namespace ‘std’ does not name a type ./../common/inc/bank_checker.h:162: error: ‘string’ in namespace ‘std’ does not name a type ./../common/inc/bank_checker.h:165: error: ‘KeyType’ does not name a type ./../common/inc/bank_checker.h:175: error: ISO C++ forbids declaration of ‘map’ with no type ./../common/inc/bank_checker.h:175: error: typedef name may not be a nested-name-specifier ./../common/inc/bank_checker.h:175: error: expected ‘;’ before ‘<’ token ./../common/inc/bank_checker.h:185: error: ISO C++ forbids declaration of ‘map’ with no type ./../common/inc/bank_checker.h:185: error: invalid use of ‘::’ ./../common/inc/bank_checker.h:185: error: expected ‘;’ before ‘<’ token ./../common/inc/bank_checker.h:237: error: ‘string’ in namespace ‘std’ does not name a type ./../common/inc/bank_checker.h:262: error: ISO C++ forbids declaration of ‘vector’ with no type ./../common/inc/bank_checker.h:262: error: typedef name may not be a nested-name-specifier ./../common/inc/bank_checker.h:262: error: expected ‘;’ before ‘<’ token ./../common/inc/bank_checker.h:263: error: ‘AccessInfoList’ has not been declared ./../common/inc/bank_checker.h:263: error: ‘iterator’ does not name a type ./../common/inc/bank_checker.h:264: error: ‘AccessInfoList’ has not been declared ./../common/inc/bank_checker.h:264: error: ‘const_iterator’ does not name a type ./../common/inc/bank_checker.h:269: error: ISO C++ forbids declaration of ‘map’ with no type ./../common/inc/bank_checker.h:269: error: typedef name may not be a nested-name-specifier ./../common/inc/bank_checker.h:269: error: expected ‘;’ before ‘<’ token ./../common/inc/bank_checker.h:270: error: ‘IndexAInfoList’ has not been declared ./../common/inc/bank_checker.h:270: error: ‘iterator’ does not name a type ./../common/inc/bank_checker.h:271: error: ‘IndexAInfoList’ has not been declared ./../common/inc/bank_checker.h:271: error: ‘const_iterator’ does not name a type ./../common/inc/bank_checker.h:273: error: ISO C++ forbids declaration of ‘map’ with no type ./../common/inc/bank_checker.h:273: error: typedef name may not be a nested-name-specifier ./../common/inc/bank_checker.h:273: error: expected ‘;’ before ‘<’ token ./../common/inc/bank_checker.h:276: error: ‘AccessData’ has not been declared ./../common/inc/bank_checker.h:276: error: ‘iterator’ does not name a type ./../common/inc/bank_checker.h:277: error: ‘AccessData’ has not been declared ./../common/inc/bank_checker.h:277: error: ‘const_iterator’ does not name a type ./../common/inc/bank_checker.h:280: error: ‘AccessData’ does not name a type ./../common/inc/bank_checker.h:311: error: expected ‘,’ or ‘...’ before ‘&’ token ./../common/inc/bank_checker.h:311: error: ISO C++ forbids declaration of ‘AccessDataCIter’ with no type ./../common/inc/bank_checker.h:335: error: expected unqualified-id before ‘&’ token ./../common/inc/bank_checker.h:335: error: expected ‘,’ or ‘...’ before ‘&’ token ./../common/inc/bank_checker.h:337: error: ISO C++ forbids declaration of ‘parameter’ with no type ./../common/inc/bank_checker.h: In constructor ‘BankChecker::AccessLocation::AccessLocation(int)’: ./../common/inc/bank_checker.h:338: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘file’ ./../common/inc/bank_checker.h:338: error: ‘f’ was not declared in this scope ./../common/inc/bank_checker.h:339: error: ‘l’ was not declared in this scope ./../common/inc/bank_checker.h:341: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘array_name’ ./../common/inc/bank_checker.h:341: error: ‘aname’ was not declared in this scope ./../common/inc/bank_checker.h:343: error: ‘ostringstream’ is not a member of ‘std’ ./../common/inc/bank_checker.h:343: error: expected ;’ before ‘oss’
./…/common/inc/bank_checker.h:344: error: ‘oss’ was not declared in this scope
./…/common/inc/bank_checker.h:344: error: ‘file’ was not declared in this scope
./…/common/inc/bank_checker.h:346: error: ‘string’ in namespace ‘std’ does not name a type
./…/common/inc/bank_checker.h:348: error: ‘thread_access’ was not declared in this scope
./…/common/inc/bank_checker.h:348: error: ‘ltid’ was not declared in this scope
./…/common/inc/bank_checker.h:348: error: ‘sstr’ was not declared in this scope
./…/common/inc/bank_checker.h:356: error: ‘thread_access’ was not declared in this scope
./…/common/inc/bank_checker.h:356: error: ‘ltid’ was not declared in this scope
./…/common/inc/bank_checker.h:360: error: ‘key’ was not declared in this scope
./…/common/inc/bank_checker.h: In copy constructor ‘BankChecker::AccessLocation::AccessLocation(const BankChecker::AccessLocation&)’:
./…/common/inc/bank_checker.h:368: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘file’
./…/common/inc/bank_checker.h:368: error: ‘const class BankChecker::AccessLocation’ has no member named ‘file’
./…/common/inc/bank_checker.h:371: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘array_name’
./…/common/inc/bank_checker.h:371: error: ‘const class BankChecker::AccessLocation’ has no member named ‘array_name’
./…/common/inc/bank_checker.h:372: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘key’
./…/common/inc/bank_checker.h:372: error: ‘const class BankChecker::AccessLocation’ has no member named ‘key’
./…/common/inc/bank_checker.h: In member function ‘BankChecker::AccessLocation& BankChecker::AccessLocation::operator=(const BankChecker::AccessLocation&)’:
./…/common/inc/bank_checker.h:384: error: ‘file’ was not declared in this scope
./…/common/inc/bank_checker.h:384: error: ‘const class BankChecker::AccessLocation’ has no member named ‘file’
./…/common/inc/bank_checker.h:386: error: ‘array_name’ was not declared in this scope
./…/common/inc/bank_checker.h:386: error: ‘const class BankChecker::AccessLocation’ has no member named ‘array_name’
./…/common/inc/bank_checker.h: In member function ‘bool BankChecker::AccessLocation::operator==(const BankChecker::AccessLocation&) const’:
./…/common/inc/bank_checker.h:400: error: ‘file’ was not declared in this scope
./…/common/inc/bank_checker.h:400: error: ‘const class BankChecker::AccessLocation’ has no member named ‘file’
./…/common/inc/bank_checker.h: At global scope:
./…/common/inc/bank_checker.h:410: error: expected initializer before ‘&’ token
./…/common/inc/bank_checker.h: In member function ‘bool BankChecker::AccessLocationComparator::operator()(const BankChecker::AccessLocation&, const BankChecker::AccessLocation&) const’:
./…/common/inc/bank_checker.h:422: error: ‘const class BankChecker::AccessLocation’ has no member named ‘getKey’
./…/common/inc/bank_checker.h:422: error: ‘const class BankChecker::AccessLocation’ has no member named ‘getKey’
src/bank_checker.cpp: At global scope:
src/bank_checker.cpp:43: error: expected constructor, destructor, or type conversion before ‘<’ token
src/bank_checker.cpp:46: error: ‘numeric_limits’ is not a member of ‘std’
src/bank_checker.cpp:46: error: expected primary-expression before ‘unsigned’
src/bank_checker.cpp:46: error: expected ‘,’ or ‘;’ before ‘unsigned’
src/bank_checker.cpp:47: error: ‘numeric_limits’ is not a member of ‘std’
src/bank_checker.cpp:47: error: expected primary-expression before ‘unsigned’
src/bank_checker.cpp:47: error: expected ‘,’ or ‘;’ before ‘unsigned’
src/bank_checker.cpp: In constructor ‘BankChecker::BankChecker()’:
src/bank_checker.cpp:53: error: class ‘BankChecker’ does not have any field named ‘access_data’
src/bank_checker.cpp: In destructor ‘BankChecker::~BankChecker()’:
src/bank_checker.cpp:66: error: ‘cout’ is not a member of ‘std’
src/bank_checker.cpp:67: error: ‘endl’ is not a member of ‘std’
src/bank_checker.cpp: At global scope:
src/bank_checker.cpp:97: error: expected unqualified-id before ‘&’ token
src/bank_checker.cpp:97: error: expected ‘,’ or ‘…’ before ‘&’ token
src/bank_checker.cpp:98: error: ISO C++ forbids declaration of ‘parameter’ with no type
src/bank_checker.cpp: In member function ‘void BankChecker::access(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, const char*, int, int)’:
src/bank_checker.cpp:115: error: ‘aname’ was not declared in this scope
src/bank_checker.cpp:116: error: ‘index’ was not declared in this scope
src/bank_checker.cpp:117: error: ‘access_data’ was not declared in this scope
src/bank_checker.cpp: In member function ‘void BankChecker::reset()’:
src/bank_checker.cpp:150: error: ‘access_data’ was not declared in this scope
src/bank_checker.cpp:151: error: ‘thread_access’ is not a member of ‘BankChecker::AccessLocation’
src/bank_checker.cpp: At global scope:
src/bank_checker.cpp:158: error: expected ‘,’ or ‘…’ before ‘&’ token
src/bank_checker.cpp:158: error: ISO C++ forbids declaration of ‘AccessDataCIter’ with no type
src/bank_checker.cpp: In member function ‘void BankChecker::analyse(int)’:
src/bank_checker.cpp:161: error: ‘IndexAInfoListCIter’ was not declared in this scope
src/bank_checker.cpp:161: error: expected ;' before ‘iter_index’ src/bank_checker.cpp:162: error: ‘iter_index’ was not declared in this scope src/bank_checker.cpp:162: error: ‘iter_loc’ was not declared in this scope src/bank_checker.cpp:174: error: ‘AccessInfoListCIter’ was not declared in this scope src/bank_checker.cpp:174: error: expected ;’ before ‘iter’
src/bank_checker.cpp:175: error: ‘iter’ was not declared in this scope
src/bank_checker.cpp:199: error: ‘cerr’ is not a member of ‘std’
src/bank_checker.cpp:207: error: expected `;’ before ‘iter’
src/bank_checker.cpp:208: error: ‘iter’ was not declared in this scope
src/bank_checker.cpp:211: error: ‘cerr’ is not a member of ‘std’
src/bank_checker.cpp: At global scope:
src/bank_checker.cpp:158: warning: unused parameter ‘AccessDataCIter’
src/bank_checker.cpp: In constructor ‘BankChecker::AccessLocation::AccessLocation()’:
src/bank_checker.cpp:225: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘file’
src/bank_checker.cpp:228: error: class ‘BankChecker::AccessLocation’ does not have any field named ‘array_name’
src/bank_checker.cpp:230: error: ‘cerr’ is not a member of ‘std’
src/bank_checker.cpp:230: error: ‘endl’ is not a member of ‘std’
src/bank_checker.cpp: In constructor ‘BankChecker::AccessInfo::AccessInfo()’:
src/bank_checker.cpp:248: error: ‘cerr’ is not a member of ‘std’
src/bank_checker.cpp:248: error: ‘endl’ is not a member of ‘std’
src/bank_checker.cpp: At global scope:
src/bank_checker.cpp:259: error: ‘string’ in namespace ‘std’ does not name a type
make[1]: *** [obj/release/bank_checker.cpp.o] Error 1
make: *** [lib/libcutil.so] Error 2[/font]

How might I go about fixing this and getting things working?

Do you have the Apple developer kit (SDK) installed? Looks like some fairly fundamental headers are missing.

I have XCode/Developer tools installed. I am pretty sure I just installed the standard installation, which should include all the applicable SDKs? I’ll try reinstalling xcode and see what happens.

Ya… Now that I reinstalled xcode, it works. I think the first time I installed it, I hadn’t had the command line tools checked and installed. Anyway, works just fine now.