void function(int i); void function(char i); int main(){ int i(5); function(i); //<- this is acceptable char c('a'); function(c); //<- I would NOT like this to compile } void function(int i){return;}
Standard input is empty
/home/5HMznz/ccs6Mmj5.o: In function `main': prog.cpp:(.text+0x26): undefined reference to `function(char)' collect2: ld returned 1 exit status
Standard output is empty