Procedure Entry Point Not Found

Hello,

I am currently using OpenCV-4.5.5-x64 with MinGW and encountering issues when trying to execute the compiled binary. The PATH environment variable is correctly set and includes the /bin/ folder.

However, when I compile using the command below, I encounter the following errors during execution:
1
2
3
The procedure entry point 
"_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev" 
could not be located in the DLL "C:\OpenCV-MinGW-Build-OpenCV-4.5.5-x64\x64\mingw\bin\libopencv_imgcodecs455.dll".

and
1
2
3
4
The procedure entry point 
"_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev"
could not be located in the DLL
"C:\OpenCV-MinGW-Build-OpenCV-4.5.5-x64\x64\mingw\bin\libopencv_imgcodecs455.dll".

and
1
2
3
4
The procedure entry point 
"_ZSt28__throw_bad_array_new_lengthv"
could not be located in the DLL
"C:\OpenCV-MinGW-Build-OpenCV-4.5.5-x64\x64\mingw\bin\libopencv_imgproc455.dll".

(please note that contents of the /lib/ directory are in the format libopencv_core455.dll.a)

Here is the compilation command I am using:
 
g++ -O3 -m64 -o build/server.exe main.cpp -IC:/OpenCV-MinGW-Build-OpenCV-4.5.5-x64/include -LC:/OpenCV-MinGW-Build-OpenCV-4.5.5-x64/x64/mingw/lib -std=c++2a -lws2_32 -lgdi32 -lcomdlg32 -static-libgcc -static-libstdc++ -static -lgdiplus -lgdi32 -lole32 -loleaut32 -lshlwapi -lopencv_core455.dll -lopencv_imgcodecs455.dll -lopencv_highgui455.dll -lopencv_imgproc455.dll


It appears the linking is done correctly, but I'm unsure of what else could be causing these issues.
Any insights or suggestions would be greatly appreciated.

Thank you for your help!

Best regards,

Luke
Last edited on
UPDATE: Ive tried an older Build and OpenCV-MinGW-Build-OpenCV-4.1.1-x64
(https://github.com/huihut/OpenCV-MinGW-Build/releases/tag/OpenCV-4.1.1-x64)
seems to work just fine!
Last edited on
Registered users can post here. Sign in or register to post.