[BUG] Cannot compile with ARM-Cortex processors #115

Closed
opened 2026-01-29 15:03:55 +00:00 by claunia · 6 comments
Owner

Originally created by @chent11 on GitHub (Mar 31, 2022).

Description

When an ARM GCC compiles the code below,

geometry/vectors_3d.c:10 #include <arm_math.h>
geometry/quaternions.c:10 #include <arm_math.h>

it will complain about the lacking of "arm_math.h" file. Because this is not a standard C math library, you need to add the CMSIS-DSP library to your project and tell the compiler to link it so that it can be compiled.

Expected behavior

No errors would prompt

Actual behavior

fatal error: arm_math.h: No such file or directory

Possible fix

Add CMSIS-DSP library to this repo

Steps to reproduce

Use an ARM GCC to compile this repo

Context

Additional information

No response

Originally created by @chent11 on GitHub (Mar 31, 2022). ### Description When an ARM GCC compiles the code below, ``` geometry/vectors_3d.c:10 #include <arm_math.h> geometry/quaternions.c:10 #include <arm_math.h> ``` it will complain about the lacking of "arm_math.h" file. Because this is not a standard C math library, you need to add the CMSIS-DSP library to your project and tell the compiler to link it so that it can be compiled. ### Expected behavior No errors would prompt ### Actual behavior fatal error: arm_math.h: No such file or directory ### Possible fix Add CMSIS-DSP library to this repo ### Steps to reproduce Use an ARM GCC to compile this repo ### Context - ### Additional information _No response_
claunia added the Stalebug labels 2026-01-29 15:03:55 +00:00
Author
Owner

@mucahitdemir commented on GitHub (Apr 24, 2022):

If you use ST CubeMx IDE, in the Project section, select include all the necessary library files option

@mucahitdemir commented on GitHub (Apr 24, 2022): If you use ST CubeMx IDE, in the Project section, select _include all the necessary library files_ option
Author
Owner

@github-actions[bot] commented on GitHub (May 25, 2022):

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions[bot] commented on GitHub (May 25, 2022): This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 2, 2022):

Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

@github-actions[bot] commented on GitHub (Jun 2, 2022): Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our [Gitter](https://gitter.im/TheAlgorithms) channel or our [Discord server](https://discord.gg/c7MnfGFGa6). Thank you for your contributions!
Author
Owner

@Panquesito7 commented on GitHub (Oct 3, 2022):

CC: @TheAlgorithms/c_maintainer

@Panquesito7 commented on GitHub (Oct 3, 2022): CC: @TheAlgorithms/c_maintainer
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2022):

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions[bot] commented on GitHub (Nov 3, 2022): This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 12, 2022):

Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

@github-actions[bot] commented on GitHub (Nov 12, 2022): Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our [Gitter](https://gitter.im/TheAlgorithms) channel or our [Discord server](https://the-algorithms.com/discord/). Thank you for your contributions!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#115