language modes specified are incompatible

kyrpav
Posts: 37
Joined: Wed Jan 29, 2020 8:27 am

language modes specified are incompatible

Postby kyrpav » Sat Dec 12, 2020 5:02 pm

I am new to Esp32 with vscode. I have build a c++ initial program that works and i am trying to add some classes in different folder and files .hpp and .cpp.

In each of these files i get an error at the beginning of the file that:
command-line error: language modes specified are incompatibleC/C++(1027)
In hpp file i get it on class creation on first letter.
In cpp i get it on # of the include of the hpp file.

It is always the first char of the file.

I used F1 and select of language modes and for either .cpp and hpp files and for all cpp is selected and no selection works.

Is there any solution? I understand that disable squiggles is not the correct option cause they show also the errors.

Thanks

silverdr
Posts: 1
Joined: Wed Aug 16, 2023 5:21 pm

Re: language modes specified are incompatible

Postby silverdr » Wed Aug 16, 2023 5:23 pm

Were you able to solve this?

Who is online

Users browsing this forum: Baidu [Spider] and 83 guests