ILMerge使用2个第三方dll的C ++ [英] ILMerge using 2 third party dll's C++
本文介绍了ILMerge使用2个第三方dll的C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了一个程序,利用2个第三方dll,我想使用ILMerge将两个dll合并为一个可执行文件。
我试过使用命令行:
I have written a program that utilizes 2 3rd party dll's and I want to use ILMerge to merge both dll's into 1 executable.
I have tried using the command line:
ilmerge /target:winexe /out:final.exe normal.exe 3rd_party_dll_1.dll 3rd_party_dll_2.dll
但这会返回此错误:
`Could not load assembly from the location 'C:\Users\...' Skipping and processing trest of arguments. `
我缺少某些东西,或者这些dll可能无法合并吗?
Am I missing something or is it possible that these dll's cannot be merged?
推荐答案
ILMerge不适用于本机dll的开箱即用,但有一个解决方法。
ILMerge doesn't work on native dlls out of the box, but there is a workaround.
这篇关于ILMerge使用2个第三方dll的C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文