Bonjour,

alors voici mon probleme :
une fois la compilation terminée, j'exécute mon programme et il m'affiche plein d'erreurs :

sophie@debian:~/Mini projet prog Systeme bis$./proc_init.c 2 1 3 5
./proc_init.c: line 1: /********************************************************: Aucun fichier ou répertoire de ce type
./proc_init.c: line 2: chef.c: command not found
./proc_init.c: line 3: chef.c: command not found
./proc_init.c: line 4: chef.c: command not found
./proc_init.c: line 5: chef.c: command not found
./proc_init.c: line 6: chef.c: command not found
./proc_init.c: line 7: chef.c: command not found
./proc_init.c: line 8: chef.c: command not found
./proc_init.c: line 9: chef.c: command not found
./proc_init.c: line 10: chef.c: command not found
./proc_init.c: line 11: ********************************************************: Aucun fichier ou répertoire de ce type
./proc_init.c: line 13: /*Processus: Aucun fichier ou répertoire de ce type
: command not found 27:
: command not found 29:
: command not found 30:
./proc_init.c: line 31: struct: command not found
./proc_init.c: line 32: long: command not found
./proc_init.c: line 32: /bin: is a directory
./proc_init.c: line 33: long: command not found
: command not found 33:
./proc_init.c: line 34: int: command not found
./proc_init.c: line 35: int: command not found
: command not found 35:
./proc_init.c: line 36: int: command not found
: command not found 36:
./proc_init.c: line 37: int: command not found
: command not found 37:
./proc_init.c: line 38: int: command not found
./proc_init.c: line 39: syntax error near unexpected token `}'
'/proc_init.c: line 39: ` } envoi_msg;
de la ligne 2 à 11, c'est un commentaire, mais chef.c n'y figure pas !!!! :
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*******************************************************
* MINI-PROJET PROGRAMMATION SYSTEME EN C SOUS UNIX                *
*                                                                      *
* Auteurs :      Sophie                                                        *
*                Hoan Kiem                                                                                                        *
*                                                                       *
* 12/05/2008                                                             *
*                                                                      *
* Version 1.1                                                              *
*                                                                      *
********************************************************/
 
puis vient les déclarations des structures : 
/*Processus Initial*/
 
#include<sys/types.h>
#include<fcntl.h>
#include<unistd.h>
#include<string.h>
#include<stdio.h>
#include<stdlib.h>
#include<sys/signal.h>
#include<sys/wait.h>
#include<sys/msg.h>
#include<ipc.h>
#include<sem.h>
#include<wait.h>
#include<sys/stat.h>
 
#define MSGKEY 50
 
struct msg_struct2 {
      long mtype;        /* pid du mecano */
      long tps;
      int nat;
      int cat1;
      int cat2;
      int cat3;
      int cat4; 
    } envoi_msg;
 
struct msg_struct {
    long mtype;
    int information;
    }msg_recu;
Je ne vois pas du tout ce qui cloche
Merci de votre aide

Nana7