I have an unmanaged library that i am loading from C# and i have recently recompiled it after cleaning some debug code. After i tried to run the C# code, however i got this error:
System.DllNotFoundException: Unable to load DLL 'mylib.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
When i looked at it using dependency walker, i got this output:
I have not changed anything apart from removing some unnecessary console output, and my library does not reference any system headers other than windows.h and stdio.h I have tried updating MSVC and changing library type from SHARED to MODULE in CMakeLists but it did not help.
Am i missing some Cmake compile options or doing something else wrong? I am starting to think that my windows install became broken during past week somehow by this point, as just last week it has been working perfectly, but now even last weeks build is not working correctly.
User contributions licensed under CC BY-SA 3.0