Witam, ściągnąłem bibliotekę autorstwa Radosława Kwietnie, nie pamiętam z jakiej strony. Tworzę nowy projekt w Eclipse nenon3 pod linuxem, a w nim dwa pliki *.c i *.h. Po kompilacji projektu w zakładce Console mam taki wynik:
Cytuj:
19:54:17 **** Incremental Build of configuration Release for project lcd_lib ****
make all
Building target: lcd_lib.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,lcd_lib.map -mmcu=atmega8 -o "lcd_lib.elf" ./HD44780.o
/usr/lib/gcc/avr/4.9.2/../../../avr/lib/avr4/crtatmega8.o:(.init9+0x0): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [lcd_lib.elf] Błąd 1
makefile:50: polecenia dla obiektu 'lcd_lib.elf' nie powiodły się
19:54:18 Build Finished (took 411ms)
I w zakładce problem dwa errory:
Cytuj:
Description Resource Path Location Type
polecenia dla obiektu 'lcd_lib.elf' nie powiodły się makefile /lcd_lib/Release line 50 C/C++ Problem
Cytuj:
Description Resource Path Location Type
undefined reference to `main' lcd_lib line 0, external location: /usr/lib/avr/lib/avr4/crtatmega8.o C/C++ Problem
Co mam poprawić żeby skompilować tą bibliotekę?