Mind posting the errors you were getting?
Then what do you mean it's not compiling? If it didn't compile there must be some error...
The book is telling you to compile from Visual Studio's command line. CL.exe is the compiler it uses. -GX is like a parameter for CL. I recommend using a simpler IDE, such as Dev-C++..
New project > Empty Project > Right click on the Folder "source" and create New .cpp file.
Well I guess creating an empty project works too. =o=
well, thaats how i learned it, and because i dont like creating projects with main.cpp already created with some random code
I think you should just use Dev-C++ until you've gained some experience using a basic IDE. Or you can be a man and use the command line to compile.