Karl Heinz Buchegger wrote:
Hu**********@gmail.com wrote:
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.
Do you have a more specific error message then that?
--
Karl Heinz Buchegger
kb******@gascad.at
I get an error saying (amongst other things).
BTW, I compile the code with gcc3.3 under mac OS10.3(Xcode2.x require
above mac OS10.4, I'm afraid of my machine will be slow if I upgrade to
OS10.4).
error: `fill' is not a function,
/usr/include/g++/bits/stl_algobase.h:561: error: conflict with `void
std::fill(char*, char*, const char&)'
best,
Tony