Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Compiling C++ with VSCode on the Mac

$
0
0

Total novice C++ user going thru tutorials using Visual Studio Code on OSX. Barest bones Hello World program

#include <iostream>

int main()
{
    std::cout << "Hello, World!";
    return 0;
}

Then I run-compile in VSCodes terminal using

$ g++ Foo.cpp -o foo

My question is, shouldn't I be seeing the Hello, World! out put in the terminal? Or will this only be visible if I compile and run in Windows? I do see an executable after compiling but nothing in the VS Terminal window.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>