I have a undefined reference to
error when i try to create class object into main function. I know it's a linker error and I'm using g++ while I try to compile my source. But when I look into common questions I saw the problem was multiple .cpp files. But in my situation I don't have any multiple .cpp files I have two .h and one .cpp. I don't understand how to fix this linker problem with multiple header files. I will be grateful if there any help. Thank you
Full error output:
> g++ main.cpp/usr/bin/ld: /tmp/cchsiO4x.o: in function `main':main.cpp:(.text+0x7af): undefined reference to `infixToPostfix::infixToPostfix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'collect2: error: ld returned 1 exit status