Hallo,
ich schreibe meine C-Programme auf einem Laptop mit Visual Studio. Die Kompilierung erfolgt auf dem Raspberry Pi. Ich habe nun das Problem, bei einer keinesfalls kompletten noch fertigen Codes. Mich stört gerade die Anzahl an Fehlermeldungen während des Kompilierens.
Die Defenition existiert jeweils nur einmal.
Code
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 1 22:31:36 2015 from prodigy-w7.fritz.box
root@rpi2-debian:~# cd /home/sschultewolter/gcc/lcd1602_spi/lcd1602_spi
root@rpi2-debian:/home/sschultewolter/gcc/lcd1602_spi/lcd1602_spi# gcc -o lcd1602 main.c lcd_core.c -lpigpio -lpthread -lrt
/tmp/ccdYYC3g.o:(.rodata+0x0): multiple definition of `LCD_RS'
/tmp/ccurIUtk.o:(.rodata+0x0): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x4): multiple definition of `LCD_EN'
/tmp/ccurIUtk.o:(.rodata+0x4): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x8): multiple definition of `LCD_D4'
/tmp/ccurIUtk.o:(.rodata+0x8): first defined here
/tmp/ccdYYC3g.o:(.rodata+0xc): multiple definition of `LCD_D5'
/tmp/ccurIUtk.o:(.rodata+0xc): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x10): multiple definition of `LCD_D6'
/tmp/ccurIUtk.o:(.rodata+0x10): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x14): multiple definition of `LCD_D7'
/tmp/ccurIUtk.o:(.rodata+0x14): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x18): multiple definition of `LCD_BL'
/tmp/ccurIUtk.o:(.rodata+0x18): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x1c): multiple definition of `LCD_NA'
/tmp/ccurIUtk.o:(.rodata+0x1c): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x20): multiple definition of `LCD_BOOTUP_MS'
/tmp/ccurIUtk.o:(.rodata+0x20): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x24): multiple definition of `LCD_ENABLE_US'
/tmp/ccurIUtk.o:(.rodata+0x24): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x28): multiple definition of `LCD_WRITEDATA_US'
/tmp/ccurIUtk.o:(.rodata+0x28): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x2c): multiple definition of `LCD_COMMAND_US'
/tmp/ccurIUtk.o:(.rodata+0x2c): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x30): multiple definition of `LCD_SOFT_RESET_MS1'
/tmp/ccurIUtk.o:(.rodata+0x30): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x34): multiple definition of `LCD_SOFT_RESET_MS2'
/tmp/ccurIUtk.o:(.rodata+0x34): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x38): multiple definition of `LCD_SOFT_RESET_MS3'
/tmp/ccurIUtk.o:(.rodata+0x38): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x3c): multiple definition of `LCD_SET_4BITMODE_MS'
/tmp/ccurIUtk.o:(.rodata+0x3c): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x40): multiple definition of `LCD_CLEAR_DISPLAY_MS'
/tmp/ccurIUtk.o:(.rodata+0x40): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x44): multiple definition of `LCD_CURSOR_HOME_MS'
/tmp/ccurIUtk.o:(.rodata+0x44): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x48): multiple definition of `LCD_DDADR_LINE1'
/tmp/ccurIUtk.o:(.rodata+0x48): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x49): multiple definition of `LCD_DDADR_LINE2'
/tmp/ccurIUtk.o:(.rodata+0x49): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x4a): multiple definition of `LCD_DDADR_LINE3'
/tmp/ccurIUtk.o:(.rodata+0x4a): first defined here
/tmp/ccdYYC3g.o:(.rodata+0x4b): multiple definition of `LCD_DDADR_LINE4'
/tmp/ccurIUtk.o:(.rodata+0x4b): first defined here
collect2: error: ld returned 1 exit status
root@rpi2-debian:/home/sschultewolter/gcc/lcd1602_spi/lcd1602_spi#
Alles anzeigen