I'm new to c++ and am using Eclipse on my Mac osX. This error (below) has come up and I have no idea why. Can anyone help? Is there something wrong with my code? Please help, I am a newbie.
error:
Building target: Assignment5_2
Invoking: MacOS X C++ Linker
g++ -o "Assignment5_2" ./assignment5_2.o
Undefined symbols for architecture x86_64:
"createtable()", referenced from:
_main in assignment5_2.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [Assignment5_2] Error 1
// the prototype
void createtable( );
// the function
void createtable( EmployeeRec employees[ ] )
if you want a c++ compiler to see them as the same thing they need to be exactly alike. In C++ you can have more than one function with the same name with different definitions and this is the case you created, thus the function isn't seen by the linker.