G++ input into VScode returning error message 'no input files'

This is probably a very simple fix, but I’m just starting up and wanting it all to begin smoothly. I have downloaded xcode, so I’m unsure why it is giving me this error.

(comp name):~ Joe$ g++
clang: error: no input files

If anyone could push me in the right direction, that would be most helpful.
Thank you

$ g++ --help
Usage: g++ [options] file...

https://www.tutorialspoint.com/How-to-compile-and-run-the-Cplusplus-program

If you’re at the place I think you are, that’s the expected output. Actually compiling is covered shortly thereafter.

Thank you!

I knew it’d be a simple fix, I just wanted to make sure all as well before I continued on.
Thanks for the help.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.