persistence_demos icon indicating copy to clipboard operation
persistence_demos copied to clipboard

problem in converting cpp file to exe file

Open Jigsaw855 opened this issue 2 years ago • 1 comments

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, std::allocator >::_M_set_length(unsigned long long)' collect2.exe: error: ld returned 1 exit status"

Jigsaw855 avatar Feb 15 '23 11:02 Jigsaw855

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/

hasherezade avatar Mar 05 '23 16:03 hasherezade