Closed joakim-hove closed 1 year ago
OK - I found a solution: disable default features and explicitly use the libm
crate when declaring the num_complex
dependency:
[dependencies.num-complex]
version = "0.4.3"
default-features = false
features = ["libm"]
Hello;
I am creating software to run on a ARM microcontroller, when try to compile the following small program for the embedded target I get multiple compilation errors:
I build with:
and get a large error message from the compiler: debug.txt. In order to reproduce you must install the
thumbv7em-none-eabihf
target with:NB: When compiling for the default host target with
cargo build
everything works as a charm.Update: The errors all seem to stem from the implementation of the
num-traits
trait, and using e.g. thenum_integer
instead ofnum_complex
I get the same error messages; so maybe thenum-traits
repository is a more suitable place for this issue?