MinGW g++: Multiple definition of vsnprintf when using to_string

前端 未结 4 1978
Happy的楠姐
Happy的楠姐 2020-12-08 17:40

I just started using MinGW for Windows. When trying to create executable using

g++ a.cpp -o a.exe -std=c++14

for the code below:



        
4条回答
  •  萌比男神i
    2020-12-08 17:45

    Installing MinGW packages mingw32-libmingwex-* will link an appropriate version of vsnprintf and avoid the linker error.

提交回复
热议问题