persistence_demos
persistence_demos copied to clipboard
problem in converting cpp file to exe file
hi I wanna converting cpp file to exe by gcc but this error had shown
"c:/users/o-philipo-res/downloads/gcc-12.2.0-no-debug/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\O-PHIL~1\AppData\Local\Temp\ccnbUZcf.o:main.cpp:(.text$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xc4): undefined reference to `std::__cxx11::basic_string<char, std::char_traits
hi, it seems like this is the problem: https://techoverflow.net/2021/04/11/how-to-fix-gcc-lots-of-undefined-reference-to-std-functions/