Skip to content

Cannot use uint-declarations #1567

@vipoty

Description

@vipoty

Describe the problem

When I try to use the declarations like uint8_t, uint16_t and so on on the second and further files in a project I have the errors:
error: unknown type name 'uint8_t'
error: unknown type name 'uint16_t'

To reproduce

Just add the second file to the project and write something like:
/* Can I use uint16_t and uint8_t here& */
uint16_t a_function(uint8_t a_variable) {
return a_variable * 2;
}

image
image

Expected behavior

uint16_t and uint8_t should be valid type declarations like in the first file in the project.

Arduino IDE version

2.0.0

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions