Skip to content

Instantly share code, notes, and snippets.

@jonm
Created October 10, 2015 19:35
Show Gist options
  • Save jonm/411c0659b1582e7db7c2 to your computer and use it in GitHub Desktop.
Save jonm/411c0659b1582e7db7c2 to your computer and use it in GitHub Desktop.
variable name conflicts with library function
[~/src/SillyMUD/src]$ 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:61:5: error: redefinition of 'reboot' as different kind of symbol
int reboot = 0; /* reboot the game after a shutdown */
^
/usr/include/unistd.h:680:6: note: previous definition is here
int reboot(int);
^
...
11 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