Hi, I am trying to compile several files but I get this error...

[rbaena@palautordera programs]$ make -f Makefile
gcc acorr.c -o ../bin/acorr ../subroutines/postape.c ../subroutines/getframe0.c \
../subroutines/getframe1.c ../subroutines/getat0.c ../subroutines/getat1.c \
../subroutines/decode0.c ../subroutines/decode1.c -lm;
/tmp/ccDVaRlH.o: In function `getframe0':
getframe1.c:(.text+0x0): multiple definition of `getframe0'
/tmp/ccIvJbx6.o:getframe0.c:(.text+0x0): first defined here
/tmp/ccQc0KM1.o: In function `main':
acorr.c:(.text+0xc41): undefined reference to `getframe1'
collect2: ld returned 1 exit status
make: *** [acorr] Error 1

Can anybody help me?
Thanks
Roberto

Well looks like you have the function getframe0() defined twice in the files getframe1.c and getframe0.c

And you don't have the function getframe1() defined anywhere.

I think what you want to do is rename getframe0() to getframe1() in getframe1.c ?

Seems it works.
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.