Skip to content

Instantly share code, notes, and snippets.

@jonm
Created October 3, 2015 19:54
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/d7d2b2115bc9e4ed45c3 to your computer and use it in GitHub Desktop.
Save jonm/d7d2b2115bc9e4ed45c3 to your computer and use it in GitHub Desktop.
Error describing a duplicated/conflicting declaration.
$ 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
In file included from comm.c:21:
./protos.h:21:7: error: conflicting types for 'strdup'
char *strdup(char *source);
^
/usr/include/string.h:117:7: note: previous declaration is here
char *strdup(const char *);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment