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?

Recommended Answers

All 2 Replies

what version of the compiler are you using? Have you installed SP5 bug fixes? I have VC++ 6.0 with SP 5 and do not have your problem.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.