POSIX library is not being used
Hi all, I'm trying to change directory using
Code:
int chdir(char *directory);
However GCC gives me the error
Code:
$ gcc grabber.c -o grabber
grabber.c: In function ‘main’:
grabber.c:19: error: conflicting types for ‘chdir’
/usr/include/unistd.h:457: error: previous declaration of ‘chdir’ was here
I checked it out with splint and it complained i'm not using the POSIX library, and i basically installed gcc, libraries etc with the debian build-essential package. Here's the splint response
http://redruby.pastebin.com/m5f1468dd
Can anyone shed any light on this, as im confused and not sure what to do. Thanks