From: Oberdan L. M. <obe...@gm...> - 2006-04-20 17:29:21
|
Hello all, I'm using in my program the version of mkdir that takes 2 parameters (directory and permissions), and is located in <sys/stat.h>. All worked fine until I needed using gethostname, that is inside <unistd.h>. Then gcc started with the message: error: too many arguments to function mkdir Seems that <unistd.h> provides another version of mkdir that takes only one argument. how can I avoid this error? I'm using gcc 3.4.2 on WinXP SP2 Thanks in advance. |