Skip to main content
Associate II
February 10, 2026
Solved

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

  • February 10, 2026
  • 3 replies
  • 200 views

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

Best answer by Erwan YVIN

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

3 replies

TKornAuthor
Associate II
February 10, 2026

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

TKornAuthor
Associate II
February 13, 2026

Hello, can anybody help?

Erwan YVIN
Erwan YVINBest answer
ST Employee
February 13, 2026

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