0
Files in cpp
Hello guys! I am currently running a program in c++. My program has multiple files, however, two of my files are declared as "first defined here" or "undefined reference to vtable..." even though I have included them. What can I do so the program runs normally?
4 Answers
+ 1
MargK645 you can place your code on code playground with multiple file as multiple codes and copy the link of code from code playground nd share only that link in comment section over here.
coming to your question, it seems you might have missed to define body for atleast one of the pure virtual function... check that virtual destructor is also having body defined for it
0
Can you show me the code? Maybe I can help
0
Agent_I thank you for responding but I'm afraid that I can't include it here since it's too long
0
MargK645
You don't have to post everything, just the important parts, where the problems are