typedef compilation error

Jan 18, 2010 at 3:45am
Whenever I try to build my program, (code snip here):

1
2
3
4
using namespace std;

typedef vector<int> bignum;


I get this:

error: expected initializer before '<' token.

Does anyone know why this is and what I can do to fix it??

Jan 18, 2010 at 3:53am
Did you #include <vector>?
Jan 18, 2010 at 3:56am
yep, got it to work now, thanks :)
Jan 18, 2010 at 5:51am
cool~
Topic archived. No new replies allowed.