Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99142

Mingw Terminal Output: multiple definition of 'vsnprintf'

$
0
0

I'm trying to get Mingw to work for VSCode at the moment, I've install all the packages from a Mingw download website and set the bin folder "C:\MinGW\bin" in my Environmental Variables. I set up a basic "Hello World" single source file and I was able to get the correct output. However now I'm trying to work on a project for school that contains multiple files and when I try to run this code I'm getting the following output in my terminal:

c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../libmingwex.a(vsnprintf.o):(.text+0x0): multiple definition of `vsnprintf'; C:\Users\tommy\AppData\Local\Temp\ccA3ybsU.o:equation.cpp:(.text$vsnprintf[_vsnprintf]+0x0): first defined here
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../libmingw32.a(main.o):(.text.startup+0xb0): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status

Not exactly sure how to go about fixing this, if someone could point me in the right direction.


Viewing all articles
Browse latest Browse all 99142

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>