I am having trouble dealing with multiple C++ files in Visual Studio Code (I am a Linux user). Everything is fine, but when I include a header (class definition) file (which includes another .cpp with the class methods and constructors), it gives a strange error "undefined reference to Class_name::Class_name()".
Running the exact same code in Code::Blocks in an empty project is working perfectly fine. If I am using separate files it isn't working, so I guess the problem is how to link the files in VS Code? Is there a way this can be solved?