我使用 WinInet 库。为了使程序正常运行,我必须安装 MS Redistributable Package,否则会弹出错误。是否可以使用程序编译库以使其在不安装库的情况下运行?
最佳答案
MS Redistributable 包是VC runtime,与wininet.dll
的使用无关。
一个选项是静态链接 VC 运行时 ( MT
compiler switch, instead of MD
)。
关于c++ - 用dll库编译程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11074971/