Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Problem with C/C++-Indexer

Hello,
For the first problem there is a PR:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=72435

For a second problem if you are using standard make add coresponding definition to C/C++ Include Paths & Symbols by pressing Add preprocessor Symbol... button in project properties.

Vaidotas

Ebert, Ralf wrote:
Hello,

my project contains two targets with different include paths. For example: Target one needs the files file_a.c and file_b.c, target two needs the files file_b.c and file_c.c. My active target to compile ist target one (file_c.c is excluded for this build) and it will be build right. Unfortunately the C/C++-Indexer is scanning all files file_a.c, file_b.c and file_c.c. Because file_c.c needs other include paths, so the indexer reports
'C/C++ Indexer Problem: Preprocessor Inclusion not found: rpc.h in file: D:\workspace_v3.1RC2\headers\file_c.h on line: 13.'

because the path to 'file_c.h' is unknown for this target. Is there any way to prevent indexing the files which are excluded from the current build?

A further problem is, that lines like
  #error IOH82238.H header file requires compiler option: -v1

are reported by the indexer with
C/C++ Indexer Problem: #error encountered with text: IOH82238.H header file requires compiler option: -v1 in file: D:\ElsterWorkspace_v3.1RC2\dl220\DL220\Target\ioh82238.h on line: 21

Is there any way to solve this problem?

Best regards,
  Ralf

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
.




Back to the top