Hello everyone, this is my first post on this forum. I am new to C++ and I am teaching myself how to program using a guidebook so please recognize that currently, I am nowhere near proficient at C++. In the process of creating my first C++ program (a simple "Hello World!" program) I have run into a minor problem.
My problem: I have g++ on my machine, verified through the command prompt. However, when I attempt to compile and link my program, I run into this error: I type in: g++ Motto.cpp -o Motto.exe into the command prompt as directed by the guidebook however I am confronted with this error message:
g++: error: Motto.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated
I'm trying to figure out what the problem is exactly and how I can fix it. From what I can tell I have followed the directions in the book. I am searching for a thorough, in-depth answer as I am seeking to gain as much knowledge in Programming as I can. If possible, tell me more than "how" to fix it, I want to know why doing what you tell me is going to work. Thank you for taking the time to help a newb.
Regards,
~Cheyne