So the obligatory Hello World project. Just to make sure that I am able to compile and execute the output...
/********************************************************
*
* main.cc
*
*
********************************************************/
#include < iostream >
int main ()
{
// This prints "Hello World"
std::cout << "Hello World" <<>
return 0;
}
To compile I used a Makefile that I had created for a class that I had previously taken during my coursework at SMU.
All the fluff contained in the Makefile added include paths for libraries that were not required for this simple project. The resultant compile command was this:
g++ -c -o HelloWorld.o HelloWorld.cc
To execute this in the cygwin console the following must be entered:
./HelloWorld.exe
In a cmd.exe shell within Windows XP Pro the "./" is not required.
The output from either console is:
Hello World
No comments:
Post a Comment