Mail Archives: djgpp/1996/05/13/13:39:55
While porting my program from BC3.1 to DJGPP v2, I got the
warning of an implicit declaration of int mkdir(...).
When I grep-ed the include-directory, I found that in
sys/stat.h there's a prototype for mkdir(char*,int,int);.
while in BC3.1 there's int mkdir(char*) in dir.h
If I include sys/stat.h, I get the message that there are too
few arguments to mkdir("testfile").
If I do not include anything special, apparently the correct
mkdir is included from a library since the action is performed
correctly.
Anyhow, where should int mkdir() be defined ?
--
Greetings from = Groetjes vanwege
--------------------------------------------
Dieter Demerre
Email : Dieter DOT Demerre AT cs DOT kuleuven DOT ac DOT be
http : www.cs.kuleuven.ac.be/~demerre
--------------------------------------------
- Raw text -