Hallo Kolleg:innen,
ich bekomme bei Kompilieren mit Code::Blocks (20.03) auf einem
Linux-Mint PC folgende Fehlermeldung:
1 | ------------- Build: Debug in test3 (compiler: GNU GCC Compiler for AVR)---------------
|
2 |
|
3 | avr-gcc -Wall -mmcu=atxmega128a1u -DF_CPU=2000000UL -g -Os -I/usr/include -c main.c -o obj/Debug/main.o
|
4 | avr-gcc -L/usr/lib -o bin/Debug/test3.elf obj/Debug/fuse.o obj/Debug/main.o -mmcu=atxmega128a1u -Wl,-Map=bin/Debug/test3.map,--cref
|
5 | In file included from /usr/include/math.h:43:0,
|
6 | from /usr/lib/avr/include/util/delay.h:46,
|
7 | from main.c:5:
|
8 | /usr/include/bits/floatn.h:75:1: Fehler: Unbekannter Maschinenzustand »__TC__«
|
9 | typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
|
10 | ^
|
11 | /usr/include/bits/floatn.h:87:9: Fehler: unbekannter Typname: »__float128«
|
12 | typedef __float128 _Float128;
|
13 | ^
|
14 | main.c: In Funktion »main«:
|
15 | main.c:22:5: Fehler: expected declaration or statement at end of input
|
16 | }
|
17 | ^
|
18 | Process terminated with status 1 (0 minute(s), 0 second(s))
|
19 | 3 error(s), 0 warning(s) (0 minute(s), 0 second(s))
|
Auf einem zweiten Linux-Mint PC mit (vermeindlich) gleicher
Konfiguration funktioniert es ohne Probleme. Ich habe alle Einstellungen
verglichen, kann aber keinen Unterschied feststellen.
Vielleicht hat jemand eine Idee oder einen Denkanstoß.
Ich bin Bascom-Umsteiger und gerade erst dabei C zu lernen, also habt
Nachsicht :-)
Hier noch der äußerst anspruchsvolle Code:
1 | //#define F_CPU 2E6
|
2 | #include <avr/io.h>
|
3 | #include <util/delay.h>
|
4 |
|
5 | int main(void)
|
6 | {
|
7 | //DDRD |= (1<<PD0);
|
8 | PORTC.DIR = PIN0_bm | PIN1_bm;
|
9 | /* Replace with your application code */
|
10 | while (1)
|
11 | {
|
12 | //PORTD = (1<<PD0);
|
13 | //PORTC.OUTSET |= (1<<PIN1);
|
14 | PORTC.OUTSET = PIN0_bm;
|
15 | _delay_ms(1000);
|
16 | //PORTD &= ~(1<<PD0);
|
17 | //PORTC.OUTSET &= ~(1<<PIN1);
|
18 | PORTC.OUTCLR = PIN0_bm;
|
19 | _delay_ms(1000);
|
20 | }
|