d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > [c] Problem Compiling With -wall
Add Reply New Topic New Poll
Retired Moderator
Posts: 31,238
Joined: Nov 26 2006
Gold: 11,222.12
Trader: Trusted
Jul 14 2012 02:00am
implicit declaration of function ‘mkdir’ [-Wimplicit-function-declaration]
implicit declaration of function ‘stat’ [-Wimplicit-function-declaration]

these are my includes
#include <arpa/inet.h>
#include <direct.h>
#include <errno.h>
#include <fcntl.h>
#include "net.h"
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "util.h"

any ideas what I'm missing?

thanks!
Member
Posts: 9,803
Joined: Jun 28 2005
Gold: 6.67
Jul 15 2012 11:09am
http://linux.die.net/man/3/mkdir
http://linux.die.net/man/3/stat

They should be in <sys/stat.h> but you seem to have already included that file. Maybe your system doesn't follow POSIX closely enough?
Member
Posts: 576
Joined: Mar 5 2012
Gold: 0.00
Warn: 10%
Aug 12 2012 03:19am
:blink:

is there still a problem?
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll