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
I wanted to start beefing up my fundamentals in C++ and related design skills. My goal is to spend a little bit of time each evening to work on the basics. In college I maintained a lab book for all my engineering courses. This blog was created to serve a similar function. I wanted to give myself a mechanism for recording my progress and to document the projects I am working on.
Tuesday, November 30, 2010
Monday, November 22, 2010
Ready Begin...
To start out I will describe what kind of system I am working on. I built this computer with the following specifications:
Motherboard: MA785G-UD3H (Gigabyte)
CPU: AMD Athaon 64x2 dual Core Processor 5000+ (2.64 GHz)
RAM: 2GB
OS: Windows XP Pro (SP3)
In an attempt to be true to my thrifty nature my development environment consists of the best tools that a free download can buy.
I am using the compiler available with cygwin (setup version 2.697)
Motherboard: MA785G-UD3H (Gigabyte)
CPU: AMD Athaon 64x2 dual Core Processor 5000+ (2.64 GHz)
RAM: 2GB
OS: Windows XP Pro (SP3)
In an attempt to be true to my thrifty nature my development environment consists of the best tools that a free download can buy.
I am using the compiler available with cygwin (setup version 2.697)
Subscribe to:
Posts (Atom)