You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bug invoked in process of make.code when aacgm module are compiled:
"
make.version /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/..
make.hdr /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include /Users/huijunli/Tools/Python/rst/include/analysis
/Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include/aacgm.h
/Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include/aacgm.h -> /Users/huijunli/Tools/Python/rst/include/analysis/aacgm.h
cc -Wall -pedantic -O3 -D_GNU_SOURCE -D_DARWIN -I/opt/local/include -I/Users/huijunli/Tools/Python/rst/include/base -I/Users/huijunli/Tools/Python/rst/include/general -c math.c
math.c:45:33: error: implicitly declaring library function 'floor' with type 'double (double)' [-Werror,-Wimplicit-function-declaration]
if (quotient >= 0) quotient = floor(quotient);
^
math.c:45:33: note: include the header <math.h> or explicitly provide a declaration for 'floor'
"
What's wrong with it?
The text was updated successfully, but these errors were encountered:
Looks like the math library might not be linked (see this stack exchange answer). The makefile might need to be modified with the inclusion of -lm after math.c to link the math library.
A bug invoked in process of make.code when aacgm module are compiled:
"
make.version /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/..
make.hdr /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include /Users/huijunli/Tools/Python/rst/include/analysis
/Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include/aacgm.h
/Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include/aacgm.h -> /Users/huijunli/Tools/Python/rst/include/analysis/aacgm.h
cc -Wall -pedantic -O3 -D_GNU_SOURCE -D_DARWIN -I/opt/local/include -I/Users/huijunli/Tools/Python/rst/include/base -I/Users/huijunli/Tools/Python/rst/include/general -c math.c
math.c:45:33: error: implicitly declaring library function 'floor' with type 'double (double)' [-Werror,-Wimplicit-function-declaration]
if (quotient >= 0) quotient = floor(quotient);
^
math.c:45:33: note: include the header <math.h> or explicitly provide a declaration for 'floor'
"
What's wrong with it?
The text was updated successfully, but these errors were encountered: