#ifndef header guard causing error

Hello,

I am getting an error when using header guards.

For example

#ifndef SHT30_H
#define SHT30_H

Screenshot:

Does someone know why?

Thanks in advance!

Ctrl-shift-p then choose “rebuild intellisense”. Or just try a build. Those usually work.

The squiggles are from intellisense, not from PlatformIO.

Cheers,
Norm.

Thanks, that works.

Just want to add, its command-shift-p on Macs :slight_smile:

Excellent! I’m a Linux user 99.99999999999999999% of the time, and Windows when I’m forced to. I’ve never used Apple kit since the 2E back in college in 1983. Thanks for the correction though, filed for possible later use.

Take care.

Cheers,
Norm.