Hi Gurus,
I'm trying to execute the below program- Within APUE.3E -> filedir -> filetype.c (this comes by default when I downloaded APUE.3E. I didn't make any changes)
but when I compile, this is the error I'm receiving:
Code:
myramya~/Documents/apue.3e/filedir$ gcc filetype.c -lm -o filetype /tmp/cchPKE7K.o: In function main': filetype.c:(.text+0x94): undefined reference toerr_ret' collect2: error: ld retued 1 exit status
I'm using Linux Ubuntu. I have installed APUE.3E in Documents folder. I have administrator permissions. I wrote a simple Hello.c program and executed using:
Code:
$ gcc hello.c -o hello
Can you please help me resolve this issue? 
Thank you,
برچسب:
نویسنده: استخدام کار