I am using windows command prompt and avr-gcc to compile a c file for atmega644, in directory C:\Users\Yong\Desktop\display and with the command below:
avr-gcc -mmcu=atmega644p -DF_CPU=12000000 -Wall -Os testc11.c -o testc11.elf
I have a <liblcd.a> file in the same directory where <testc11.c> is stored. And I am having trouble figuring out where to modify the linker command namely where to add -llcd.
I have been instructed to add -llcd to the end of the linker command, but I couldn't quite manage to pull it off.
I have tried several ways to do it including:
1) avr-gcc -mmcu=atmega644p -DF_CPU=12000000 -Wall -Os testc11.c -o -L/C:/Users/Yong/Desktop/display -llcd testc11.elf
2) avr-gcc -mmcu=atmega644p -DF_CPU=12000000 -Wall -Os -L/C:/Users/Yong/Desktop/display -llcd testc11.c -o testc11.elf
3) avr-gcc -mmcu=atmega644p -DF_CPU=12000000 -Wall -Os -llcd testc11.c -o testc11.elf
but it kept saying "cannot find -llcd". Screenshot:
Any help on what to type into cmd will be very much appreciated. Thanks.
Also I have searched through the internet for manuals, examples and documentation but they exacerbated the confusion since I am a true rookie and many things are still too heavy for me to comprehend. Any helpful advice on learning would be very much appreciated. Thanks in advance.