englishllka.blogg.se

Visual studio code c++ compile
Visual studio code c++ compile







visual studio code c++ compile

You need to build your program before you put it to work, so you need to create a "task" to do that, so you go to the command pallet ( Ctrl+ P) and type: Tasks: Configure Default Build Tasks "/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed",įirst select the folder you are going to work (it's going to be your workspace). You need to install g++ sudo apt-get install g++ and show the compiler where is the include route in a file named c_cpp_properties.json in the linux section, like this: "name": "Linux", So this are the steps to get a program to work: I don't know your experience but, first of all, it is not like any Windows compiler (like devc, borland, etc) where it will output your values on a external console (unless you are debugging). I had this problem too when I switched to Ubuntu (I'm kind of new too, so I will try to be very clear I understand it's more complicated than Windows).









Visual studio code c++ compile