J'ai le probleme suivant:

2 modules s'incluant mutuellement, cad:

TabPixel.h : #include "ContourDiscret.h"
TabPixel.c : #include "TabPixel.h"
ContourDiscret..h : #include "TabPixel.h"
ContourDiscret.c : #include "ContourDiscret.h"

et j'arrive pas a compiler:
gcc -g -Wall -DPOSIX_C_SOURCE=1 -I../..//include -c -o TabPixel.o TabPixel.c
In file included from TabPixel.h:5,
from TabPixel.c:16:
ContourDiscret.h:30: error: parse error before "tabPixel"
ContourDiscret.h:32: error: parse error before "getCanal"
ContourDiscret.h:32: error: parse error before "t"


Voici les lignes30 et 32 donc:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
#30> extern int appartient(int x, int y, int *contour, tabPixel t);
#31>
#32> extern tabPixel getCanal(tabPixel t, contourDiscret c);
gcc -g -Wall -DPOSIX_C_SOURCE=1 -I../..//include -c -o ContourDiscret.o ContourDiscret.c
In file included from ContourDiscret.h:4,
from ContourDiscret.c:11:
TabPixel.h:44: error: parse error before "contourDiscret"


La ligne 44:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
#44> extern tabPixel getContenu(tabPixel t, char *etiquette, contourDiscret c);