fork(1) download
  1.  
  2.  
  3. Module.h
  4.  
  5. int module_global;
  6. void ModuleInit(void);
  7.  
  8. /////////////////////////////////////////
  9.  
  10. Module.c
  11.  
  12. #include Module.h
  13. void ModuleInit(void){
  14. int module_global = 1;
  15. }
  16.  
  17. /////////////////////////////////////////
  18. Main.c
  19.  
  20. #include Module.h
  21.  
  22. void main (void){
  23. ModuleInit();
  24. module_global++;
  25. }
  26.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 Module.h
       ^
prog.c:10:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 Module.c
       ^
prog.c:12:11: error: #include expects "FILENAME" or <FILENAME>
  #include Module.h
           ^~~~~~
prog.c:18:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 Main.c
     ^
prog.c:20:11: error: #include expects "FILENAME" or <FILENAME>
  #include Module.h
           ^~~~~~
stdout
Standard output is empty