疑问描述:
新建solution:DllTest,Dll Project:DllSub,Console Project:DllMain
Build DllSub,DllMain调用DllSub,Build DllMain
报错:Main.obj : error LNK2019: unresolved external symbol ************************
referenced in function _main
解决:
DllMain-Properties-Common Properties-Framework and References-Add New Reference-DllSub
疑问描述:
Build DllMain
报错:LINK : fatal error LNK1104: cannot open file ‘***********
\DllTest\Debug\DllSub.lib’
解决:
DllSub-Properties-Configuration Properties-General-Project Defaults-Configuration Type
换成Static Library (.lib),Build DllSub,Build DllMain
PS:这实际上就没有用dll