HI, when I try the following code, I get a compile error with gcc3.3
under mac OS.
int fill;
struct emp{
int f;
};
#include <vector>
void test(void)
{
std::vector<emp > vt;
vt.resize(2);
}
run 'gcc -x c++ -c -o t.o t.cpp'
gcc can't compile that code.
I'd appreciate any help on this issue.
Tony
under mac OS.
int fill;
struct emp{
int f;
};
#include <vector>
void test(void)
{
std::vector<emp > vt;
vt.resize(2);
}
run 'gcc -x c++ -c -o t.o t.cpp'
gcc can't compile that code.
I'd appreciate any help on this issue.
Tony
Comment