apache / apache/nuttx

[HELP] dafault math.h

Open
#15,292 5 comments 0 reactions 0 assignees View on GitHub
Community: Question
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 13h
Merged PRs (30d)
230

Description

### Description

How to replace the default math.h. I tried to use libmcs as my default math lib. I have to directly include "libmcs/math.h" to use libmcs math lib. But I want to directly include math.h in libmcs. I tried the method mentioned in #1503. However when I include math.h it still links to the math lib supplied by my toolchain. Any idea to achieve that?

### Verification

- [X] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the approach mentioned in #1503 and tracing how math.h versus libmcs/math.h is resolved by the NuttX toolchain and linker. Done means establishing a supported way to include math.h while selecting libmcs instead of the toolchain's math library, or clearly documenting why that is not possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.