fork download
  1. void foo(struct cpu_state *);
  2.  
  3. struct cpu_state { int bar; };
  4.  
  5. void bar(struct cpu_state *p)
  6. {
  7. foo(p);
  8. }
  9.  
  10. int main()
  11. {
  12. struct cpu_state t;
  13. bar(&t);
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1: warning: ‘struct cpu_state’ declared inside parameter list
prog.c:1: warning: its scope is only this definition or declaration, which is probably not what you want
prog.c: In function ‘bar’:
prog.c:7: warning: passing argument 1 of ‘foo’ from incompatible pointer type
/home/vz5DDQ/cc1XUItb.o: In function `main':
prog.c:(.text+0x26): undefined reference to `foo'
/home/vz5DDQ/cc1XUItb.o: In function `bar':
prog.c:(.text+0x1): undefined reference to `foo'
collect2: ld returned 1 exit status
stdout
Standard output is empty