hi everyone,
I was trying to run a program with three files( file1.c, file2.c and file3.h). I have my main in the file2.c and I put some prototype call from file1.c by using the keyword extern and at the top of file1.c I also have the same protoypes declerations as the ones called in file2.c or see below what I have:
file2.c /* calls some funtions infile1.c */
extern int foo()
extern byte foo2()
main () .....
file1.c
int foo() /* protoype */
int foo()...
it is giving me this type error when run:
! ./feal8.o(.text+0x0):feal8.c: multiple definition of `Decrypt'
! ./feal8.o(.text+0x0):feal8.c: first defined here
! ./feal8.o(.text+0xc4):feal8.c: multiple definition of `DissQ1'
can anyone tell me why it gives me this error ?