gocv
gocv copied to clipboard
g++.exe: error: "--std=c++11": Invalid argument
Description
Steps to Reproduce
gocv.io\x\[email protected]>go run cmd\version\main.go
gocv.io/x/gocv
g++.exe: error: "--std=c++11": Invalid argument
Your Environment
-
Operating System and version:win7 g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
-
OpenCV version used: 4.5.3
-
How did you install OpenCV? win_build_opencv.cmd
-
GoCV version used: [email protected]>
-
Go version: go version go1.16.3 windows/amd64
-
Did you run the
env.sh
orenv.cmd
script before trying togo run
orgo build
? NO
After I reinstall MinGW 7.3.0, then reinstall gocv. Solved the problem.
There may be add C:\opencv\build\install\x64\mingw\bin to your System Path.