fork(2) download
  1. void function(int i);
  2. void function(char i);
  3. int main(){
  4.  
  5. int i(5);
  6. function(i); //<- this is acceptable
  7.  
  8. char c('a');
  9. function(c); //<- I would NOT like this to compile
  10. }
  11.  
  12. void function(int i){return;}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/5HMznz/ccs6Mmj5.o: In function `main':
prog.cpp:(.text+0x26): undefined reference to `function(char)'
collect2: ld returned 1 exit status
stdout
Standard output is empty