The function "chdir" must have a prototype

Hi,

I get these result from my compilation:

line 822: Error: The function "chdir" must have a prototype.

here the command:

CC -xarch=v8plus -mt -o prog01 prog01.c -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -limqc23as -limqb23as -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl

in which library contained "chdir" and wich parameter is necessary?

System is SOLARIS9 SPARC and Studio 11.

regards heinrich

[461 byte] By [Heinrich] at [2007-11-26 9:29:11]
# 1
Hi Heinrich,man -2 chdir suggests including unistd.h, and the function seems to reside in libc.so (link to it using -lc).Best regards,Boris
Boris_Ivanovsky at 2007-7-7 0:11:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
thank you, it works.regards heinrich
Heinrich at 2007-7-7 0:11:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...