the instructions for this program is to use newton method to find zeros of a cubic function. cubics.h is given and it includes function prototypes and we have to write four functions on cubics.c. findroot.c has the main function and includes cubics.c and cubics.h. when compiling it, i get the error:
cubics.o (.text+0x68): In function 'cubic': multiple definition of
findroot.o(.text+068): first defined here
and then it does the same for the rest of the four functions in cubics.c,
at the end it says
collect2:ld returned 1 exit status
any ideas on whats wrong?