I'm a student working on an assignment, but am stuck in an area. The assignment is to do some basic arithmetic, and the three files I am working on compile fine individually, but when I try to link them I receive the following error: undefined reference to `Complex::Complex(double, double)'. I will only post the parts of the code I think pertain to the problem. I'd greatly appreciate some help!
Btw, the editor I am using is JGrasp, and the compiler is cygwin.
I'm not sure if this properly answers your question, but I'm linking the files seperately by using the "compile and link file" function in jGrasp.
Btw it just occured to me that there might be an issue with the linking process so I put all the code into just one file and now it works without any errors! Apparently the problem is related to jGrasp itself and not the code. Thank you very much for your time! :) Next time I'll just avoid linking seperate files.