error compiling arduinoISP

I have an Arduino Uno and arduino v1.0.5 . when i try to compile ArduinoISP i get the following error :

C:\arduino-1.0.5\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to setup' C:\arduino-1.0.5\hardware\arduino\cores\arduino/main.cpp:14: undefined reference toloop'

I am trying to program the atmega328 chip using ARduino uno board and following the document "From Arduino to a Microcontroller on a breadboard" but unfortuneatly no one has updated this document . I wasted a lot of time using this document and got no where hopefully some one can help me here. is there anyother document out there that is complete and working for this task ?