-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Type: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bugOff topic for this repository, or a bug report determined to not actually represent a bug
Description
Arduino-generated temp code throws errors:
exit status 1 variable or field 'displaylist' declared void
(1.8.5)
#include <lfoo.h>
#include <lbas.h>
#include <lother.h>
#include <Adisplay.h>
Adisplay display;
typedef struct {
int foo;
char bas;
} list;
list mList00;
// display Funktion
**void displaylist(list mList) { <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<**
Serial.println(mList.foo);
Serial.println(mList.bas);
}
//
void setup() {
mList00.foo=100;
mList00.bas=3;
displaylist(mList00);
//
}
Only if I put the struct definition to the most upper top (i.e., top of the #defines
), then it compiles.
Metadata
Metadata
Assignees
Labels
Type: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bugOff topic for this repository, or a bug report determined to not actually represent a bug