avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
i dont know what is meant by "-F to override this check"
arduidiot:
i dont know what is meant by "-F to override this check"
I'm not an expert on this, but this probably means that if you ran AVRDude from the operating system's command line and added this option, it would skip the check that raised this error.
And that, of course, is usually a very bad idea - you should solve the problem at the source and not ignore it. Check all you wiring, MCU clock sources etc. An explanation and clear picture of your setup will help us give more targeted suggestions.
If this is a brand new ATmega it will have internal clock set to 1 MHz, so you need to set USBasp to low clock mode. Sometimes you have pins for that like on this one: USBasp with pins for settings
If there is no such pins on your programmer (like on this one: USBasp without pins) you can still look what pin in USBasp uC is responsible for this options and pull it high/low (I don't remember right now) manually. Look here for details: USBasp - USB programmer for Atmel AVR controllers - fischl.de
Edit:
Pin 25 (PC2) on ATmega8/88 to GND. It can be also marked as JP1.
ok thanks for the reply, so just to clarify, whenever i use an ATmega328 in a circuit after i have successfully programmed it, it needs to be accompanied by components as in the diagram attached?