New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
j0 , j1, jn was not declared in this scope, edit math.h will fix, but please …… #3013
Comments
which mingw version is it ?
g++ my.cpp // compiles fine so, can you try, if removing the flag from the cmake cmdline helps ? |
Hello, thank you for your help. I use the toolchain installed in Msys2. mingw32 mingw-w64-i686-arm-none-eabi-gcc 10.1.0-2
mingw32 mingw-w64-i686-avr-gcc 8.4.0-4
mingw32 mingw-w64-i686-gcc 10.3.0-5 [installed]
mingw32 mingw-w64-i686-gcc-ada 10.3.0-5
mingw32 mingw-w64-i686-gcc-fortran 10.3.0-5
mingw32 mingw-w64-i686-gcc-libgfortran 10.3.0-5 [installed]
mingw32 mingw-w64-i686-gcc-libs 10.3.0-5 [installed]
mingw32 mingw-w64-i686-gcc-objc 10.3.0-5
mingw32 mingw-w64-i686-libgccjit 10.3.0-5
mingw32 mingw-w64-i686-riscv64-unknown-elf-gcc 10.1.0-2
mingw64 mingw-w64-x86_64-arm-none-eabi-gcc 10.1.0-2
mingw64 mingw-w64-x86_64-avr-gcc 8.4.0-4
mingw64 mingw-w64-x86_64-gcc 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-gcc-ada 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-gcc-fortran 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-gcc-libgfortran 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-gcc-libs 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-gcc-objc 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-libgccjit 10.3.0-5 [installed]
mingw64 mingw-w64-x86_64-riscv64-unknown-elf-gcc 10.1.0-2
ucrt64 mingw-w64-ucrt-x86_64-gcc 10.3.0-5
ucrt64 mingw-w64-ucrt-x86_64-gcc-fortran 10.3.0-5
ucrt64 mingw-w64-ucrt-x86_64-gcc-libgfortran 10.3.0-5
ucrt64 mingw-w64-ucrt-x86_64-gcc-libs 10.3.0-5
ucrt64 mingw-w64-ucrt-x86_64-gcc-objc 10.3.0-5
ucrt64 mingw-w64-ucrt-x86_64-libgccjit 10.3.0-5
msys gcc 10.2.0-1
msys gcc-fortran 10.2.0-1
msys gcc-libs 10.2.0-1 [installed]
msys mingw-w64-cross-gcc 10.2.0-1
When I remove the -DENABLE_CXX11=ON, the error still appears. |
Use |
I have the same problem。 I Use ` $ mingw32-make.exe VERBOSE=1 ` …………………………………… …………………………………… Consolidate compiler generated dependencies of target multiview I have test g++: `
|
Could you try these options:
|
I make all both · Consolidate compiler generated dependencies of target multiview ·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ` ` |
Now there are several
Please try this only:
(please check installed Ceres version and its prerequisites about required C++ mode) |
@alalek thank you for your answer.
works!!! |
System information (version)
Detailed description
Steps to reproduce
I edit the
F:\msys64\mingw64\x86_64-w64-mingw32\include\math.h
by adding#undef __STRICT_ANSI__
to the top of the file, then the error disappears.Please refer to this question : https://stackoverflow.com/questions/42231558/mingw-c-wont-compile-j0-funciton
Please fix it or tell me whether should I report the issue to Mingw64/Msys2
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: