#undefined reference to save::SaveManager::getKey()

15 messages · Page 1 of 1 (latest)

cold furnace
#

i just get this error and i dont know why can somebody help me pls?
(ping me!)

spring spadeBOT
#

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!

valid saffron
#

and your implementation in the cpp file only

#

you redefined the class in the cpp file

#

and the linker gets confused

cold furnace
#

what should i change now in the cpp file?

valid saffron
cold furnace
#

ok thank uvery much

#

!solved

spring spadeBOT
#

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

valid saffron
cold furnace
#

it works tysm

valid saffron
# cold furnace 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