Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
mineo
· 12y ago · 0 comments
That's because gcc is trying to compile it as C, not C++. You need to call the file "test.cpp" or explicitly use g++ instead of gcc to compile it. (You'll also need to "#include <assert.h>" or it won't compile.)
Comments
No comments yet.
Better HN