0

C++ visual studio

I am currently running windows vista and wanted visual studio for c++ coding. Because I am restricted by vista, I can only get vs 2010 :P. Unfortunately, when I try the sample code in vs it is not running and says there were build errors. I was wondering if maybe the code is not supported in the older versions of vs. Thanks in advance - Jack #include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }

3rd Jun 2018, 7:01 PM
Jack
Jack - avatar
1 Réponse
+ 2
this code should run in all versions of visual studio, but i urge you to switch to something else you are missing out on c++11,c++14 and c++17, which brought major changes to c++, you could just dualboot linux and use gcc or clang with eclipse and could get all of those versions of c++ and experimental features or use mingw or something similar on windows. this is a nice tutorial to get code::blocks and gcc 7 on windows https://solarianprogrammer.com/2017/11/22/install-codeblocks-gcc-windows/ did you maybe create a visual c++ .net project instead of a c++ project?
3rd Jun 2018, 7:06 PM
Max
Max - avatar