In file included from main.c:2:0:
cvs.h:10:15: error: ‘MAX_CHILD’ undeclared here (not in a function)
cvs.h:17:1: error: initializer element is not constant
cvs.h:19:1: error: expected ‘,’ or ‘;’ before ‘int’
cvs.h:47:3: error: unknown type name ‘No’
cvs.h:49:3: error: unknown type name ‘No’
cvs.h:51:3: error: unknown type name ‘No’
In file included from main.c:5:0:
Navio.h: In function ‘atracarNavio’:
Navio.h:19:36: error: ‘MAX_SCARGO’ undeclared (first use in this function)
Navio.h:19:36: note: each undeclared identifier is reported only once for each function it appears in
In file included from main.c:6:0:
Simular.h: In function ‘inicializarSemaforos’:
Simular.h:4:25: error: ‘maxUZCargo’ undeclared (first use in this function)
Simular.h:7:22: error: ‘maxLZCargo’ undeclared (first use in this function)
Simular.h: In function ‘simular’:
Simular.h:12:8: error: ‘i’ undeclared (first use in this function)
Simular.h:33:51: error: ‘j’ undeclared (first use in this function)
main.c: In function ‘main’:
main.c:14:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
In file included from main.c:2:0: cvs.h:10:15: error: ‘MAX_CHILD’ undeclared here (not in a function) cvs.h:17:1: error: initializer element is not constant cvs.h:19:1: error: expected ‘,’ or ‘;’ before ‘int’ cvs.h:47:3: error: unknown type name ‘No’ cvs.h:49:3: error: unknown type name ‘No’ cvs.h:51:3: error: unknown type name ‘No’ In file included from main.c:5:0: Navio.h: In function ‘atracarNavio’: Navio.h:19:36: error: ‘MAX_SCARGO’ undeclared (first use in this function) Navio.h:19:36: note: each undeclared identifier is reported only once for each function it appears in In file included from main.c:6:0: Simular.h: In function ‘inicializarSemaforos’: Simular.h:4:25: error: ‘maxUZCargo’ undeclared (first use in this function) Simular.h:7:22: error: ‘maxLZCargo’ undeclared (first use in this function) Simular.h: In function ‘simular’: Simular.h:12:8: error: ‘i’ undeclared (first use in this function) Simular.h:33:51: error: ‘j’ undeclared (first use in this function) main.c: In function ‘main’: main.c:14:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]