Do you have a forward declaration for atoi ?
It looks like the compiler is using the declaration of atoi from <cstdlib> which is:
int atoi (const char * str);
In main, I have:
Main calls the function that evaluates the postfix expression, which is the function I partially posted
I'd suggest changing the name of your function to something like a_to_i() so it doesn't conflict.
Ohhhhhhhh, I see.
I called the function before I defined it, like you said.
Thanks a lot! Awesome that you spotted that!
Last edited on