$ gcc a.c b.c /usr/bin/ld: /tmp/ccoNPRr3.o:(.data+0x0): multiple definition of `a'; /tmp/cc8qHzR5.o:(.data+0x0): first defined here collect2: error: ld returned 1 exit status
voidf(void) { externint i; // declaration // refers to the static i at file scope // note that even though the specifier is extern // its linkage is intern (this is legal in both C/C++) { int i; // definition // automatic storage // no linkage } }
WARNING: The script script_name is installed in'/home/user_name/.local/bin' which isnot on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.