This code is from a slide my teacher posted for us in class, but he took it down before I could double check to make sure I typed it all in right. I have the following errors below..Can someone tell me what they mean and how to fix this? Thanks..
Errors:
[linker error] undefined reference to 'squareByValue(int)'
[linker error] undefined reference to 'squarebyReference(int&)'
Id returned 1 exit status
The errors are not caused by your typing, they mean that the linker cannot find the 2 symbols. To resolve the errors, you have to ask your teacher for the codes that define the 2 symbols.