Discussion Forum

Remove include path for C/C++ compiler

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Ludovic Martin
Posted
1-Sep-2010 16:18 GMT
Toolset
ARM
New! Remove include path for C/C++ compiler

Hello,
I have one question. In my project I have to use my own library include files. So I don't want the compiler to search these files in default path (includes in keil installation directory).
In the C/C++ tab in my project properties I have these lines (compiler control string):

-c --device DLM -g -O0 --apcs=interwork --asm --interleave -I.\inc -I..\cmm\inc -I..\cmm\lib -I..\cmm\src -I "C:\Program Files\Keil\ARM\INC" -I "C:\Program Files\Keil\ARM\INC\Luminary" -o ".\Obj\*.o" --omf_browse ".\Obj\*.crf" --depend ".\Obj\*.d"

and I just want to remove instruction that are in bold.
Can you help me?
Thanks a lot

Regards,

Ludovic

Read-Only
Author
Tamir Michael
Posted
1-Sep-2010 20:36 GMT
Toolset
ARM
New! RE: Remove include path for C/C++ compiler

Try the "include paths" text box just above the control string!

Read-Only
Author
Ludovic Martin
Posted
2-Sep-2010 08:54 GMT
Toolset
ARM
New! RE: Remove include path for C/C++ compiler

Yes with the "include paths" text box I have added .\inc;..\cmm\inc;..\cmm\lib;..\cmm\src to the compilator control string. But by default it has -I "C:\Program Files\Keil\ARM\INC" -I "C:\Program Files\Keil\ARM\INC\Luminary" and I want to know if it is possible and how to do to remove these lines.
Thanks

Ludovic

Read-Only
Author
Marco Accame
Posted
3-Sep-2010 09:38 GMT
Toolset
ARM
New! RE: Remove include path for C/C++ compiler

Hi Ludovic,

uv4 uses the device database to automatically add the proper configuration for the chosen micro. And it does that also for the include path.

The only way I found to remove unwanted configurations is to simply chose another device in the menu: Project / Options for Target / Device.

You may want to choose ARM / Cortex M3.

However be careful: every setting will change and you have to fill again the values by hand.

Having say that, what Tamir suggests makes your project work fine even if you still see the annoying directory.

Regards, Marco.

Read-Only
Author
Tamir Michael
Posted
3-Sep-2010 10:18 GMT
Toolset
ARM
New! RE: Remove include path for C/C++ compiler

Maybe directly editing the project files can help...?

Next Thread | Thread List | Previous Thread Start a Thread | Settings