Skip to content

Arduino IDE preprocessor causes unknown type references from prototype creation #2304

Closed
@JeffBobbo

Description

@JeffBobbo

Functions using/returned an object, structs or using typedefs cause bad code to be fed to the compiler:

Source code:
http://0bin.net/paste/Xz5MZdbmuafYUQ2Q#567rrlhZy8-xCaiI7geiRXEZ+DFo92e4dpZ/cAJvJ3j

Arduino preprocessed code (fed to avr-g++):
http://0bin.net/paste/JgtLxMb23ZOaGJMu#RYZv9sCkcSXeapn0XXRCKphshFH38YLSHmGmn2Iy4EL

Metadata

Metadata

Assignees

Labels

Component: CompilationRelated to compilation of Arduino sketchesComponent: IDEThe Arduino IDEComponent: PreprocessorThe Arduino sketch preprocessor converts .ino files into C++ code before compilationType: Bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions