cancel
Showing results for 
Search instead for 
Did you mean: 

How to get rid off indexing errors with a combined C/C++ project?

TKorn
Associate III

Dear Community,

I have a general question. I wanted to use C++ classes in SPC5 Studio to get a cleaner project structure.
For this, I changed main.c to main.cpp and included the C headers using extern "C". I also enabled the C++ linker in the Platform Component RLA.

The project builds without any issues, but the parsing errors in the editor are extremely annoying. A lot of the code is marked in red even though it compiles fine.

Does anyone know what setting I need to adjust to get rid of all these unresolved reference errors in the parser (i presume...)?

Kind regards,
TKorn

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello Tkorn ,

It is a CDT Issue .. i recommend to index with Gcc power-pc vle in plugins directories (gcc powerpc vle section)

or ignore the errors in Errors section

https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_c_indexer.htm

it is not so easy comparing vscode.

       Best Regards

                     Erwan

View solution in original post

3 REPLIES 3
TKorn
Associate III

Hello again,

I managed to find the problem, it is the indexing.

Unfortunately i didn't manage to solve to problem.

Can anyone help?

Kind regards

TKorn

TKorn
Associate III

Hello, can anybody help?

Erwan YVIN
ST Employee

Hello Tkorn ,

It is a CDT Issue .. i recommend to index with Gcc power-pc vle in plugins directories (gcc powerpc vle section)

or ignore the errors in Errors section

https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_c_indexer.htm

it is not so easy comparing vscode.

       Best Regards

                     Erwan