Skip to content

Instantly share code, notes, and snippets.

@jonm
Created October 3, 2015 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonm/8048c00da262dd03fee8 to your computer and use it in GitHub Desktop.
Save jonm/8048c00da262dd03fee8 to your computer and use it in GitHub Desktop.
Compilation error with the `log()` function.
$ make
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o comm.o comm.c
comm.c:133:7: warning: implicitly declaring library function 'log' with type
'double (double)'
log("Lawful mode selected.");
^
comm.c:133:7: note: please include the header <math.h> or explicitly provide a
declaration for 'log'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment