Home > other >  Procedure entry point could not be located in exe
Procedure entry point could not be located in exe

Time:04-05

I have a exe that I built on Windows using mingw-gcc. It has several dependencies. All of them are located on the PATH. However, when I run it I get the following error.

The procedure entry point _ZNSt11logic_errorC2EOS could not be located in the dynamic link library <name_of_exe>

I have looked at similar questions and they suggested using __declspec(dllimport) but those questions the dynamic link library in question is actually a dll and not an exe. Do I need to trawl through my dependencies and add each one as a __declspec(dllimport) or something?

CodePudding user response:

Usually the entry point name is the name of a function or class method with some decoration. I think you are missing some dll or in the path you have some not updated version of the dll. The first thing to do is to search your project for anything like St11logic_error. This way you'll find the dll which is not updated then check the one on your exe path to be sure that it's the rigth one

  • Related