Tuesday, October 17, 2006

Visual Studio 2005 C++ Lacking Namespace Issue

After several years of not having had coded in C++, I had to get back and work on some new C++ code on Microsoft Visual Stuido 2005.

When compiling very simple code including a template
... some code...
list theList;

I have started to get a compliler error "error C2143: syntax error : missing ';' before '<'"
Then I started to remember;

You do need to include;

using namespace std;

I am hereby reminding myself to do this.

No comments: