I am getting the error: libmingwex.a(vsnprintf.o):(.text+0x0): multiple definition of 'vsnprintf'; main.cpp:(.text$vsnprintf[_nsvprintf]+0x0): first defined here collect2.exe: error: ld returned 1 exit status the contents of main.cpp are #include <string> #include <iostream> int main(void) { std::cout << "Hello World. "<<std::to_string(1)<<std::endl; return 0; } the command I am executing in msys.bat is g++ -std=c++11 main.cpp I only get this error when mingw32-gcc-g++ version is 8.2.0-4 This error is not in mingw32-gcc-g++ version 6.3.0-1 I saw this question in the archives, but that was 2017, and I downloaded version 6.3.0-1 last fall. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20190731/1d6ccb8d/attachment.html>