LPCXpresso 5.0.14 Complier Command Pattern setup?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPCXpresso 5.0.14 Complier Command Pattern setup?

127 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by riscy00 on Sun Jan 13 01:54:44 MST 2013
I have several includes .h files within several folders and wish to automate the complier to find them, without defining manually within project properties (C/C++ Build>Setting>Include).

ie #include "../uartfolder/KissMyUart.h",
where I could write #include "KissMyUart.h" for several c files.

I have CodeRed LPCXpresso 5.0.14 (latest version Jan 2013), for LPC17xx.h based device.

It say the Discovery features (within project properties) is being made obsolete, okay, how to disable it completely?

I had a play with the Preprocessor Include, Path, Macro, etc, I enable it by checking the box.

Under the Complier command pattern, the default is ("gcc)|([gc]\+\+)|(clang)", that fine until I came across one member (link below) suggest to change to (arm-elf-gcc)|([gc]\+\+)|(clang).

One issue that I like to raised about Complier command pattern, is this right configuration?, should this be (arm-none-eabi)|([gc]\+\+)|(clang)?

<http://stackoverflow.com/questions/11125703/eclipse-junos-preprocessor-include-paths-macros-etc-symb...>

Can anyone advise?
0 Kudos
1 Reply

117 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Jan 13 08:51:11 MST 2013
Afaik, these settings are for the IDEs  indexer and nothing to do with the compiler. You must always explicitly tell the compiler the paths to search for include files.

See
http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
0 Kudos