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
.
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)
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?
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.
User contributions licensed under CC BY-SA 3.0