How is a C++ class packaged? I want to build a library of classes that I can reuse. The class definition I'm guessing goes to a header file. I suppose the class implementation (i.e., methods, etc. ) goes to a CPP file (same name?). I suppose I will next add the header to the package (i.e., source file) where I will use the class.
I did all these, but my compiler is giving me a linker error - undefined reference (to the method I called in the main program).