Skip to content

Arduino-generated temp code throws errors: exit status 1 variable or field 'xxx' declared void  #8257

@dsyleixa

Description

@dsyleixa

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

No one assigned

    Labels

    Type: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions