Link to home
Start Free TrialLog in
Avatar of mromeo
mromeo

asked on

Can't compile STL into Win32 Console App

Hi.  I am trying to add the std::map and std::string types to my project.  All I did was add the following to the top of one of my header files:

#include <string>
#include <map>
using namespace std;

I get hundereds of errors and warning. Some of the errors look like:

warning C4002: too many actual parameters for macro 'move'
c:\program files\microsoft visual studio\vc98\include\iosfwd(110) : error C2061: syntax error : identifier 'stdscr'
        c:\program files\microsoft visual studio\vc98\include\iosfwd(135) : see reference to class template instantiation 'std::char_traits<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\iosfwd(159) : warning C4002: too many actual parameters for macro 'move'
c:\program files\microsoft visual studio\vc98\include\iosfwd(159) : error C2061: syntax error : identifier 'stdscr'
c:\program files\microsoft visual studio\vc98\include\iosfwd(198) : warning C4002: too many actual parameters for macro 'move'
c:\program files\microsoft visual studio\vc98\include\iosfwd(198) : error C2061: syntax error : identifier 'stdscr'
etc................

Does anybody have any idea why this would happen?  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mromeo
mromeo

ASKER

Ok.. I found the problem.  It was the order in which I was including things.  I was including some PDCurses header files and I needed to include those after the STL includes.  Thanks for your help