gocv icon indicating copy to clipboard operation
gocv copied to clipboard

g++.exe: error: "--std=c++11": Invalid argument

Open shuidaan opened this issue 2 years ago • 1 comments

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

1631590128(1)

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 or env.cmd script before trying to go run or go build? NO

shuidaan avatar Sep 14 '21 03:09 shuidaan

After I reinstall MinGW 7.3.0, then reinstall gocv. Solved the problem. 1631600186(1)

There may be add C:\opencv\build\install\x64\mingw\bin to your System Path.

shuidaan avatar Sep 14 '21 06:09 shuidaan