Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Setting compilation options to g++

Excerpts from sindolfo's message of Thu Jul 16 16:39:03 +0200 2009:
> Hi,
> 
> I'm a beginner with the CDT API and need to pass a -D flag to g++ in my
> CDT Project. Is there a way to set the compilation parameters of a CDT
> project using the CDT API? Could someone post a simple example code here?
> 
> Thanks in advance,
> 
> Sindolfo Miranda Filho
> 

Hi Sindolfo,

Have a look at this (ExternelSettingsProvider extension point):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=261642
You can find some minimal information on the cdt wiki as well.
summary: I could'nt make it work.

There might be a workaround using FOO=`some prog` in env settings so
that `some prog` is executed by the shell. Don't think this helps cdt
figuring out about all include directories.

Good luck. Let me know if make this work somehow.
Marc Weber


Back to the top