Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile *.c and *.s files together in Eclipse C/C++ #796

Closed
sedevdkw opened this issue May 20, 2024 · 1 comment
Closed

Can't compile *.c and *.s files together in Eclipse C/C++ #796

sedevdkw opened this issue May 20, 2024 · 1 comment

Comments

@sedevdkw
Copy link

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:

arm-none-eabi-gcc -march=armv7-r+fp -mtune=cortex-r5 -mfpu=fpv4-sp-d16 --specs=nosys.specs -T HL_sys_link.ld -Iinclude/ source/*.c source/*.s -o output.o

However, I am unsure how to instruct the toolchain in Eclipse C/C++ to ensure that .s files are compiled as well. Please assist me with this.

Thank you in advance.

@jld01
Copy link
Contributor

jld01 commented May 20, 2024

Duplicate of #795.

@jld01 jld01 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants