I have looked at so many threads about this topic and none of them have helped. I still cannot figure out what I am doing wrong. Please help!
I am getting this error:
main.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall Config::Config(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Config@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
and here is what I have codewise. I stripped everything from the code to try and figure this out; it's extremely simple.
My Config.h file
#ifndef CONFIG_H
#define CONFIG_H
#include <string>
class Config{
public:
Config(std::string file_name);
};
#endif
and here is my Config.cpp file
//Config class
#include "Config.h"
#include <string>
Config::Config(std::string file_name){
//Do stuff
}
and here is where I try to use it
Config c("test");
I cannot figure this out for the life of me even after like an hour of reading through articles and threads.