我有一个 CLion/CMake 项目需要一个外部 DLL,A.dll
,我已将其放在项目 lib/
目录中。构建可执行文件后,当我运行 APP.exe
时,它无法找到/使用 lib/A.dll
。我该如何解决这个问题?
最佳答案
我认为您没有将 .dll 文件添加到 cmake 文件这是 Quick CMake Tutorial 或 CLion and CMake: only building a library without an executable?
关于dll - 在 Windows 上的 CLion/CMake 中,APP.exe 如何找到 lib/A.dll 以便运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37118810/