Skip to content

Generated C code does not compile #13

@davidcock

Description

@davidcock

Particularly the class.c files, example (from specs/uart):

davec@dwarrowdelf:uart$ cc -I. -I../include -o class.o -c class.c
class.c:4:13: error: redeclaration of enumerator ‘bits5’
bits5, bits6, bits7, bits8
^
In file included from class.c:1:0:
./class.h:6:13: note: previous definition of ‘bits5’ was here
bits5, bits6, bits7, bits8
^
class.c:4:20: error: redeclaration of enumerator ‘bits6’
bits5, bits6, bits7, bits8
^
In file included from class.c:1:0:
./class.h:6:20: note: previous definition of ‘bits6’ was here
bits5, bits6, bits7, bits8
^
class.c:4:27: error: redeclaration of enumerator ‘bits7’
bits5, bits6, bits7, bits8
^
In file included from class.c:1:0:
./class.h:6:27: note: previous definition of ‘bits7’ was here
bits5, bits6, bits7, bits8
^
class.c:4:34: error: redeclaration of enumerator ‘bits8’
bits5, bits6, bits7, bits8
^
In file included from class.c:1:0:
./class.h:6:34: note: previous definition of ‘bits8’ was here
bits5, bits6, bits7, bits8
^
class.c:5:11: error: conflicting types for ‘wl_t’
} wl_t;
^
In file included from class.c:1:0:
./class.h:7:11: note: previous declaration of ‘wl_t’ was here
} wl_t;
^

Nothing in specs/uart_exynos compiles at all.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions