I build a 'abc.dll', which is dependent on some other dll.
add_library(
abc
SHARED
mycode.cpp
)
target_link_libraries(
abc
avutil-57
avformat-59
)
Then I run flutter build windows -v to build the project, and in Release folder (build\windows\runner\Release), I can start the application successfully.
But if I run the application in debug mode, I encounter the error: Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'abc.dll': error code 193
I compared the dll files between release and debug folder, the abc.dll is different because of compiled in debug/release version. The reset depedent dll files are the same.
Is it because the abc.dll is compiled in debug mode but the depedent dll files are prebuild in release mode?