[RESOLVED] std::map with VS 2015
This morning I needed to open an old project in VS2015 but I couldn't seem to make anything work. So I created an empty project with just 1 x source file and added just 1 x line:-
But the compiler gives me this message:-
Quote:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ammintrin.h(127): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
If I remove the #include and just compile a totally empty source file, I get no errors. Any idea what I might be doing wrong..?
[Edit...] It's looking like it might be a namespace issue because #include <string> gives me the same error - whereas #include <cstring> is fine :confused:
Re: std::map with VS 2015
ammintrin.h contains the definitions for AMD specific intrinsic functions. What project settings are you using? Why is ammintrin.h being referenced? Can't check it here as I'm using Intel CPU and not AMD.
Re: std::map with VS 2015
Looks like an installation issue. I hadn't used VS2015 for a while so when I launched it, it went through a marathon task of upgrading itself. But I managed to restore an earlier version from a backup and launched it again (this time, making sure it I wasn't connected to the internet). And the code seems to build fine in my older version.
Re: [RESOLVED] std::map with VS 2015
I find maintaining old versions of Visual Studio are easier by keeping them in separated VMs.
Re: [RESOLVED] std::map with VS 2015
I'd never really liked VS2015 so I bit the bullet and replaced it with VS2019. Over on a different machine, the top-right window (when I load a VS2019 project) allows me to select between 3 x tabs:- Solution Explorer, Team Explorer and Property Manager. But in the new installation I only see Solution Explorer and Team Explorer. How do I configure it to show the Property Manager tab as well :confused:
[Edit...] Found it! It's in View->Other windows