samedi 1 février 2020

After Porting code from ubuntu to windows code's not working in VS Code

I recently ported my code from ubuntu to windows, the code's not working in VS Code on windows, it was working on Ububtu's VS Code. I tried the terminal on VS Code as g++ .\linearsearch.cpp -std=c++11 and it worked but how do I enable it by default in the Cpp compiler in vs code, the error is as follows:

#error This file requires compiler and library support for the \ ISO C++ 2011 standard. This support is currently experimental, and must be \ enabled with the -std=c++11 or -std=gnu++11 compiler options.

Aucun commentaire:

Enregistrer un commentaire