Hello,
I'm a long time C++ programmer, but this is my first time compiling in Windows. I'm using Microsoft C++ Visual Studio Express 2005.
I'm creating a routing program for network simulation and I have a class called Neighbor (already defined). I need to make a "list" of them using the Standard Template Library. Here is the code I'm using:
Code:
list<*Neighbor> neighbors;
and here is the errors that result:
Code:
error C2143: syntax error : missing ';' before '<'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2238: unexpected token(s) preceding ';'
I found
file file on the MSDN website with a similar example. I seem to have the syntax correct, but I can't get it to compile. I've also tried this with just an int instead of a Neighbor class object.
If I've missed something specific to Windows please let me know. Any other ideas are also welcome.
Thanks,
~Justin