-
My project contains a collection of .h, .c, and .s files. When I attempt to compile using arm-none-eabi-gcc, only the .c files are compiled into object files, while the compiler doesn't process the .s files. This results in errors during the linking stage, as all the .c and .s files need to be compiled before being linked. I have successfully compiled in the command line using arm-none-eabi-gcc with the following command:
However, I am unsure how to instruct the toolchain in Eclipse C/C++ to ensure that .s files are compiled as well. Could anyone please assist me with this? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sedevdkw, the CDT managed build system will invoke the GNU assembler on |
Beta Was this translation helpful? Give feedback.
Hi @sedevdkw, the CDT managed build system will invoke the GNU assembler on
*.S
and*.sx
files by default. If you wish to also build*.s
files, you will need to add a new file type via the project properties dialog:Does this answer your question?