salut tout le monde
voila mon code sources simplifier
j'ai coder sous dev-c++
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
17
18
19
20
21
22
23
24
25 #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <pthread.h> void src(void) { while (42) { printf("lol\n"); } } int main(int ac, char **av) { if (ac > 2) printf("salut\n"); else { pthread_t th; pthread_create(&th, NULL, src, NULL); pthread_join(th, NULL); } }
et a la compilation il me marque
ligne 22 C:\sources\lib27.c [Warning] passing arg 3 of `pthread_create' from incompatible pointer type
quelqu'un peu m'aider ??
merci ++
Partager