I am trying to call a function that I created and placed in a .h file. When the function is in my program, it works great. However, when I place the function in the .h file and call to it, I get "undefined reference" errors in the compile. I'm not certain of the syntax for defining a function in the .h file, which is probably the problem.
I am looking for an example of a function call to a user-defined function and .h file.
I am using TextPad to write the code and GNU to complile on a 2000 machine.
Attached is a zip file with the program (cgrade.cpp), the .h file (myfuncts.h) and the cpp file for the .h file (myfuncts.cpp).
Any help or suggestions would be greatly appreciated.
Thanks,
Brian