Please help, I have spent all day trying to make my c++ app compile.
My project contains one source file: Foo.cpp. Here is its code:
#include
Just to add my experience here, since it may help someone, and it applies to newer VS editions (2017 in my case).
I was getting a similar error during compiling when I moved my project to a new machine. I finally figured out that one of the projects in my dependencies had spectre mitigation turned on, and the libs with that support are not included by default: