language modes specified are incompatible
Posted: 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:
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
In each of these files i get an error at the beginning of the file that:
In hpp file i get it on class creation on first letter.command-line error: language modes specified are incompatibleC/C++(1027)
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