I'm reading this book on how to learn C++ within 24 hours. Followed all procedures up until I have to actually create my first code to be compiled and linked.
I'm working with MinGW.
These are the instructions:
"Type the text of Listing 1.1 into the editor. Ignore the numbers along the left side of
the listing and the colons that follow them. The numbers are there simply for reference
purposes in this book.
As you type, make sure to enter the punctuation on each line properly, such as the
:: and << characters on line 5.
When you’ve finished, save the file as Motto.cpp.
LISTING 1.1 The Full Text of Motto.cpp.
1 2 3 4 5 6 7
|
#include <iostream>
int main()
{
std::cout << “Solidum petit in profundis!\n”;
return 0;
}
|
I use notepad and copied the code into it and named it Motto.cpp but I can't find the compiler .exe anywhere. I installed the GNU with the default path directory to my C drive but I can only find the MinGW folder but it's not in the programs or x86 folder but actually directly in the C: directory above the "Programs Files" tab but it lacks any .exe compiler or anything. How do I get my notepad code compiled without all this hassle?
Thank you for your time!