hi everyone,
for using cv::circle I add#include <opencv2/imgproc.hpp>
and get this compiler error:
Blockquote
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/imgproc.hpp
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/core.hpp
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/core/persistence.hpp
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/core/operations.hpp
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/core/cvstd.inl.hpp
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/core/utility.hpp
1>Note: including file: C:\ecworks_mep\opencv_4_11\opencv\build\include\opencv2/core.hpp
1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\mutex
1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include__msvc_chrono.hpp
1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\ratio
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\ratio(21,31): error C2084: function ‘intmax_t std::_Abs(const intmax_t) noexcept’ already has a body
1>(compiling source file ‘/src/dlgImageChoice.cpp’)
What is wrong here?
I am using Visual Studio 17.14.2 and opencv 4.11
EDIT: it must be something else I include before opencv gets included. the sample code on OpenCV: samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp
works in a clean project, but not when I include it in my app.
When I try to include the sample code as early as possible I get a
1>C:\ecworks_mep\opencv_4_10\build\include\opencv2\core\base.hpp(548,25): fatal error C1001: Internal compiler error.
1>(compiler file ‘msc1.cpp’, line 1589)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1>If possible please provide a repro here: https://developercommunity.visualstudio.com
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>INTERNAL COMPILER ERROR in ‘C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64\CL.exe’
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>Done building project “mainFindCompErr.vcxproj” – FAILED.