This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

In Eclipse, how do linked resources work? and -mcpu=cortex-m4?

I am using an example file provided in the "Development with GCC and Eclipse". The file has many .c files in the "Project->Resource->Linked Resource" area. There are no corresponding .h files. How are the .h files included?

Also the compiler has this flag set "-mcpu=cortex-m4". Where is that defined? I set the device tab to "NRF51822_xxAA". I've seen a place the define the type of processor, but I can't find it in this setup.

And another thing. Command-B builds all the projects, how to I set it to build only the current project?