Skip to content

Instantly share code, notes, and snippets.

@jonm
Created October 10, 2015 19:15
Show Gist options
  • Save jonm/f400c743161ae0cb3657 to your computer and use it in GitHub Desktop.
Save jonm/f400c743161ae0cb3657 to your computer and use it in GitHub Desktop.
implicit declaration errors
$ make
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -Werror -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o comm.o comm.c
comm.c:163:25: error: implicit declaration of function 'atoi' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
} else if ((port = atoi(argv[pos])) <= 1024) {
^
...
20 errors generated.
make: *** [comm.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment