The application was unable to start correctly 0xc000007b

-1

On Windows 10 64 bit, my 64-bit C++ application depends upon NLopt. After including headers and linking to libnlopt.dll.a, also the libnlopt.dll is copied next to app executable.

Running the application shows a dependency upon libgcc_s_seh-1.dll. I'm using pre-built NLopt binaries, I think they are built with MinGW, that's why dependency upon libgcc_s_seh-1.dll.

Screenshot

After copying libgcc_s_seh-1.dll from C:\Program Files\Git\mingw64\bin next to application executable, a new runtime error is received:

The application was unable to start correctly (0xc000007b)

Screenshot 2

Did anybody experience such an error while using libgcc_s_seh-1.dll? Might it be due to binaries being built with MinGW? Would building NLopt with MS Visual Studio fix the problem?

RESOLVED

The error got resolved by building NLopt binaries nlopt.lib and nlopt.dll by MS Visual Studio and linking to them, rather than pre-built ones by MinGW.

c++
dll
dependencies
asked on Stack Overflow Oct 5, 2020 by user3405291 • edited Oct 6, 2020 by user3405291

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0