HELP: linking several object files
I want to link some object files. I use the attached "makefile", but I got the following error when making the executable file:
UX:ld: ERROR: Doctors.o: fatal error: symbol `scr_name` multiply-defined, also in file centre.o
collect2: ld returned 1 exit status
*** Error code 1 (bu21)
UX:make: ERROR: fatal error
Actually, the symbol scr_name is declared in medico.h file, which is included in all the .c files.
I even had to use -include option for compiling each .c file because the line
centre.o : centre.c medico.h
does not work.