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:
they say:
cubics.o (.text+0x68): In function 'cubic': multiple definition of
'cubic'
findroot.o(.text+068): first defined here
and then it does the same for the rest of the four functions in cubics.c,
but
at the end it says
collect2:ld returned 1 exit status
any ideas on whats wrong?