Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to execute Macro in standard Make C project?
How to execute Macro in standard Make C project? [message #156562] Thu, 20 October 2005 16:53
Eclipse UserFriend
Hi,


I'm trying to see if CDT is going to be adaptable for my project. My
existing c source has a reference to a macro called COMP_INC(). For
example in the c source file it looks like this:

#include COMP_INC(kernal, init.h)

The indexer is failing with: C/C++ Indexer problem: Invalid preprocessor
directive: {0} in file: <path to file> Which points to the above
include line.

In the project properties, C/C++ Include Paths & Symbols, I've entered
the path to the macro, where the .h resides to support the macro. But I
get the same error.

I next tried to set a -imacros directive in the "Discovery Options" for
the "Compiler invocation command" as follows: /tools/bin/gcc -imacros
/vob/comp/make-lib/preinclude_macros.h. But when I make a change in the
source, and save it, then the indexer or scanner fails with: "Error
launching external scanner info generator (/tools/bin/gcc -imacros
/vob/comp/make-lib/preinclude_macros.h -E -P -v -dD
/var/eclipse/projects/ios-project-31/.metadata/.plugins/org. eclipse.cdt.make.core/specs/cpp) ".

Any ideas how I can get Indexer/scanner to expand the macro in the c source?

Thanks for the help in advance.
frank
Previous Topic:gdb issue
Next Topic:Class browser?
Goto Forum:
  


Current Time: Fri Jul 18 05:58:50 EDT 2025

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

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

Back to the top