Bonsoir,
J'arrive pas a resoudre le probleme de mes warnings :
Tous mes .o sont generer dans le dossier racine qui est VERSION1
J'ai verifier que dans mon tcp.c par exemple j'ai include <string.h> pour bzero et bcopy mais rien a faire, ca fout toujours ses warning.
Voila l'arbo de mon projet :
VERSION1

-Makefile
-smtp_main.c

+tcp
-tcp.c
-tcp.h

+smtp
-smtp.h
-smtp.c


Peut-etre que mon organisation est incorrecte, ou que surement je fais mal mes includes ?! Il 'y a til des define particuliers a faire

Voici les warnings :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
vincent@vinbuntu:~/RES/VERSION1$ make
gcc -o tcp.o -c ./tcp/tcp.c -Wall -ansi
./tcp/tcp.c: Dans la fonction «connecter» :
./tcp/tcp.c:32: attention : implicit declaration of function «bzero»
./tcp/tcp.c:36: attention : implicit declaration of function «bcopy»
./tcp/tcp.c: Dans la fonction «closeSocket» :
./tcp/tcp.c:98: attention : control reaches end of non-void function
gcc -o smtp_v1.o -c ./smtp/smtp_v1.c -Wall -ansi
./smtp/smtp_v1.c: Dans la fonction «sendHelo» :
./smtp/smtp_v1.c:18: attention : implicit declaration of function «sendN»
./smtp/smtp_v1.c:23: attention : implicit declaration of function «readN»
./smtp/smtp_v1.c: Dans la fonction «sendQuit» :
./smtp/smtp_v1.c:97: attention : implicit declaration of function «closeSocket»
cc    -c -o main_smtp.o main_smtp.c
gcc -o execsmtp tcp.o smtp_v1.o main_smtp.o
Merci de votre aide.
Ciao,