multiple definitions of 'vsnprintf'
Laura Yindra <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <CAJExs_d69-ecmn29k2Bok7q_+Y2GfyopCiYQxUccYRq1m=jq4w@mail.gmail.com> |
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.
_______________________________________________
MinGW-Users mailing list
[email protected]
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe