I was trying to program atmega 328p using vscode its not working
-
I try to program atmega328p using vscode the extension i used is avr helper ... In avr helper when i try to build the code it is showing
`1 task in folder intrrepts: make -f/home/pi/Documents/intrrepts/.vscode/avr.targets.mk build <
===== Making .vscode/avr.build/output.elf
/usr/lib/gcc/avr/5.4.0/../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [/home/pi/Documents/intrrepts/.vscode/avr.targets.mk:52: .vscode/avr.build/output.elf] Error 1
The terminal process "/bin/bash '-c', 'make -f/home/pi/Documents/intrrepts/.vscode/avr.targets.mk build'" terminated with exit code: 2.Terminal will be reused by tasks, press any key to close it.
`
i think this is the problem with avr-gcc can anyone help to solve this -
@Richu-Bini sry guys its my fault i forget to put 'a' in int main (void) .... 2 days to find an 'a'
-
. solved right?