Hi;
<https://rosettacode.org/wiki/Hamming_numbers#C>
Rosetta Code "Hamming numbers" task written in C (version 2) fails for
me on MacOS (M1) when using the following command:
clang -lm -lgmp -o ./hamming_numbers ./hamming_numbers.c
failure message:
Undefined symbols for architecture arm64:
"__eq", referenced from:
_get_ham in hamming_numbers-af6ba2.o
"__setv", referenced from:
_get_ham in hamming_numbers-af6ba2.o
_main in hamming_numbers-af6ba2.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My LD_LIBRARY_PATH env variable does not exist or is blank.
Should I use this env var?
If so, what should it be set to?
What am I missing in my compiler+linker command?
Thanks,
Ken Wolcott