
coloonder
(usa Outra)
Enviado em 26/06/2011 - 13:51h
Ola sou novo aqui estou com problemas com um Makefile, gostaria de saber se tem solucao
Makefile:
"# Linux
CC = gcc
CFLAGS = -Wall -O3
CLIBS =
SERVER_OBJ = pass.o aes.o base64.o cast.o flood.o ip.o process.o tribe.o td.o
CLIENT_OBJ = pass.o aes.o base64.o cast.o ip.o tribe.o tfn.o
all: td tfn
clean:
@echo removing junk...
@rm -f tfn td mkpass disc pass.c *.exe *.o *~
tfn: agreed ${CLIENT_OBJ}
${CC} ${CFLAGS} ${CLIBS} ${CLIENT_OBJ} -o tfn
strip tfn
td: agreed ${SERVER_OBJ}
${CC} ${CFLAGS} ${CLIBS} ${SERVER_OBJ} -o td
strip td
agreed: disc
./disc
pass.c: mkpass
./mkpass"
O Error segue:
"sievers@sievers-K51AE:~/Vídeos/tfn2k$ cd src && make
gcc -Wall -O3 disc.c -o disc
disc.c: In function ‘main’:
disc.c:24:5: warning: implicit declaration of function ‘exit’
disc.c:24:5: warning: incompatible implicit declaration of built-in function ‘exit’
In file included from /usr/include/fcntl.h:252:0,
from disc.c:5:
In function ‘open’,
inlined from ‘main’ at disc.c:30:13:
/usr/include/bits/fcntl2.h:51:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: ** [disc] Erro 1
"