AP Comp Sci C++ Classes in OS X
I downloaded all of the AP classes (apmatrix.h, apvector.h, apmatrix.cpp etc) and put them in the /usr/include/ folder.
When I try to compile a program with Project Builder I get the following error:
in file included from main.cpp:3
template with C linkage
my program is:
using namespace std;
#include <iostream>
#include <apvector.h>
int main (int argc, const char * argv[]) {
apvector<int> test(10);
cout<< "Hello, World!\
";
return 0;
}
I know that nothing in the program is wrong.
Has anyone had success using the AP Classes in OS X?
[ 10-12-2002: Message edited by: jante99 ]
[ 10-12-2002: Message edited by: jante99 ]</p>
When I try to compile a program with Project Builder I get the following error:
in file included from main.cpp:3
template with C linkage
my program is:
using namespace std;
#include <iostream>
#include <apvector.h>
int main (int argc, const char * argv[]) {
apvector<int> test(10);
cout<< "Hello, World!\
";
return 0;
}
I know that nothing in the program is wrong.
Has anyone had success using the AP Classes in OS X?
[ 10-12-2002: Message edited by: jante99 ]
[ 10-12-2002: Message edited by: jante99 ]</p>
Comments
#include "apvector.h"
Or do that and also copy the ap classes into whatever directory you have your work in.
Btw Rick, Jante's using C++ because AP Computer Science is taught in C++, not Obj-C.