1

I allready asked a question about this inside JoBe's Thread about the stl <map> (http://www.daniweb.com/techtalkforums/post252520-10.html), but maybe it's better if i make a new thread about it.

The problem is, when i try to use <map> inside my project i get 2 errors:

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\map(16) : error C2143: syntax error : missing ';' before 'namespace'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\map(16) : error C2501: 'B' : missing storage-class or type specifiers

When i make a new project (win32 console app), so i have a totally empty main-function everything is fine, i can do everything i want.
BUT,
when i put the following line inside my file:
#include <map>
i get the 2 errors again.

what's going on here?

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Flay
1

I have also VC++ 6.0 with SP5, so i don't know what's wrong.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.