OpenCV library linking issues in Visual Studio

what exactly are you trying to build ? a desktop app ? something for android ?

why use gcc in VisualStudio (which comes with it’ s own compiler toolchain) ?

please do not try to mix things, that don’t belong together.