Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C/C++ indexer problem
C/C++ indexer problem [message #163984] Thu, 16 February 2006 12:36 Go to next message
Eclipse UserFriend
Originally posted by: martin.kuner.thomson.net

Hi everyboy in this forum,

I want to use eclipse+cdt as intelligent editor for an already existing C
project, that means only using the editor + the code completion and code
navigating features for the beginning (I donŽt know how to included a GHS
Cross Compiler at the moment).

I successfully created a "Standard Make C Project" but I think the indexer
isnŽt working correctly.

I getting for every file (.c or .h) the following message (in brackets
<<>>)in the problems view:

<< File not indexed because it was not built DA_API.h
privatebranch/Applications/FeApp/DA February 16, 2006 1:17:59 PM >>

And the following error message (in brackets <<>>):
<<Error launching external scanner info generator (gcc -E -P -v -dD
D:/UserData/kunerm/workspace/.metadata/.plugins/org.eclipse. cdt.make.core/specs.c) privatebranch
February 16, 2006 1:16:13 PM>>

Any hint or help is welcome,
thnaks in advance
Martin
Re: C/C++ indexer problem [message #163990 is a reply to message #163984] Thu, 16 February 2006 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ddaoust.ca.ibm.com

In order to answer your question, I need to give a little background:

In general the parser needs to know the include paths and macro
definitions for each source file and the compiler built-ins before it
can be parsed(the indexer is one client that will parse the files).

In CDT there is a scanner config feature that will invoke the compiler
"gcc -E -P -v -dD" to ask it for the default values. This feature will
also look at the output of running "make" and try to determine which
includes (-I) and which defines (-D) have bee set on the command line.


Your project has been setup to use the defaults for gnu to get this
info. Since you are using the greenhills compiler, you should disable
all of the discovery feature. Got to the Properties on your project and
open the section "C/C++ Make project" and select the "Discovery
Options" tab. Deselect the "Automate discovery of paths and symbols"
and these errors will go away.

Note that you will then need to manually add the paths and symbols to
the project (or you will get a lot of other parser errors). This can be
done from the same dialog under "C/C++ Include paths and symbols".

- Dave

Martin Kuner wrote:
> Hi everyboy in this forum,
>
> I want to use eclipse+cdt as intelligent editor for an already existing
> C project, that means only using the editor + the code completion and
> code navigating features for the beginning (I donŽt know how to included
> a GHS Cross Compiler at the moment).
> I successfully created a "Standard Make C Project" but I think the
> indexer isnŽt working correctly.
>
> I getting for every file (.c or .h) the following message (in brackets
> <<>>)in the problems view:
>
> << File not indexed because it was not built DA_API.h
> privatebranch/Applications/FeApp/DA February 16, 2006 1:17:59 PM >>
>
> And the following error message (in brackets <<>>):
> <<Error launching external scanner info generator (gcc -E -P -v -dD
> D:/UserData/kunerm/workspace/.metadata/.plugins/org.eclipse. cdt.make.core/specs.c)
> privatebranch February 16, 2006 1:16:13 PM>>
>
> Any hint or help is welcome,
> thnaks in advance
> Martin
>
Re: C/C++ indexer problem [message #164027 is a reply to message #163984] Fri, 17 February 2006 01:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

> (I donŽt know how to included
> a GHS Cross Compiler at the moment).

If you are using the GHS default.gpj projects, you can setup the "make"
targets to use "gbuild.exe" instead of make.

Otherwise you can setup a standard make file to use the cross compilers,
but this was more trouble than it was worth for me.

GHS also offers eclipse plugins with their latest edition of Multi. I
found them to be fairly unwieldy, but there is a ghs compiler error
parser which is handy once you get eclipse setup to build your projects.


D






Martin Kuner wrote:
> Hi everyboy in this forum,
>
> I want to use eclipse+cdt as intelligent editor for an already existing
> C project, that means only using the editor + the code completion and
> code navigating features for the beginning (I donŽt know how to included
> a GHS Cross Compiler at the moment).
> I successfully created a "Standard Make C Project" but I think the
> indexer isnŽt working correctly.
>
> I getting for every file (.c or .h) the following message (in brackets
> <<>>)in the problems view:
>
> << File not indexed because it was not built DA_API.h
> privatebranch/Applications/FeApp/DA February 16, 2006 1:17:59 PM >>
>
> And the following error message (in brackets <<>>):
> <<Error launching external scanner info generator (gcc -E -P -v -dD
> D:/UserData/kunerm/workspace/.metadata/.plugins/org.eclipse. cdt.make.core/specs.c)
> privatebranch February 16, 2006 1:16:13 PM>>
>
> Any hint or help is welcome,
> thnaks in advance
> Martin
>
Re: C/C++ indexer problem [message #164035 is a reply to message #163990] Fri, 17 February 2006 07:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.kuner.thomson.net

Thanks for the info.

After applying the proposed settings, nearly all the messages with "File
not indexed ..." have dissapeared, except some unimportant ones.
Also some "Macro usage error" messages from the indexer remains in the
problems view

The other error message "Error launching external scanner info generator
(gcc -E -P -v -dD
D:/UserData/kunerm/workspace/.metadata/.plugins/org.eclipse. cdt.make.core/specs.c) "
still exists.


The code completition feature is still not working as expected that means
if I start to access a struct object which is defined as extern via an
included .h file, after the "." or "->" no list of elements appears.

What do I wrong ?

Thanks in advance,
Martin
Re: C/C++ indexer problem [message #164041 is a reply to message #164027] Fri, 17 February 2006 08:01 Go to previous message
Eclipse UserFriend
Originally posted by: martin.kuner.thomson.net

Thanks for the info,

at the moment I donŽt have the time to setup eclipse for the GHS compiler.
I have no problem to switch to the MULIT application to start a build
process.

I only want to use eclipse+cdt to browse/edit the code. And thatŽs
currently not working as expected.

Martin
Previous Topic:CDT 3.0.2 Now Available
Next Topic:Folding Bug?
Goto Forum:
  


Current Time: Sat Jul 27 19:30:58 GMT 2024

Powered by FUDForum. Page generated in 0.03463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top