I'm having trouble getting a small source code compiled in the terminal. I'm completely new at this (just started taking an introductory course)... I'm going to try to describe the situation as best I can, so bear with me.
This is what I've done:
I opened Aquamacs and started working on a new file I called "CerealBox". I noticed the words were not in colors, so I started poking around until I found a setting to change the buffer to C++ mode. Then, I had the colors..
So I wrote the source code and I'm pretty sure I have everything done right (my professor wrote this out step by step on the board and I only copied it onto the editor).
I go to the terminal and type in
g++ -Wall -c CerealBox.cpp
as instructed to me by my professor, and the thing answers back saying
"No such file or directory"
"No input files".
I have no idea what to do! Nobody in my class uses Mac OS, so they're no help! Please, help if you can!
PS: When I save the CerealBox file, it turns up in finder as a blank page icon with the name CerealBox under it. When I click on it, I get a small window with the source code in black text. Shouldn't this be opening up with Aquamacs when I click on it? Is that my mistake?
Another thing, why is Aquamacs not running on C++ from the start, I mean, why don't I get the colorful words right when I start it up? I don't think I had that problem last time I used it.