i just get this error and i dont know why can somebody help me pls?
(ping me!)
#undefined reference to save::SaveManager::getKey()
15 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
@cold furnace
Screenshots!
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
your declarations need to be in the header file only
and your implementation in the cpp file only
you redefined the class in the cpp file
and the linker gets confused
what should i change now in the cpp file?
//header
class Dummy
{
void func() const;
};
and
//cpp file
#incude "theHeader"
void Dummy::func() const
{
//implement here
}
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
fix it first and show me that it works
it works tysm
your headers must have an include guard, to prevent duplicate includes from f*cking your build, write #pragma once at the 1st line, and try including your header twice in main.cpp