C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(1621,5): error MS

来源:互联网 发布:windows启动过程详解 编辑:程序博客网 时间:2024/04/28 02:55

关于error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.解决办法:


大概有四种:

第一种:Solution Explorer ->项目节点->鼠标右键->Properties->Linker ->General->Pre-user Redirection 设为TRUE 就好了。
对应的中文版是:
Solution Explorer ->项目节点->鼠标右键->属性->链接器->常规->逐用户重定向


第二种:提升程序的运行权限,使用管理员权限运行


第三种:关闭重定向,工程-->Propertier-->Linker-->General-->Register Output-->NO


第四种:使用depends.exe打开生成的.ocx文件,查看需要的依赖库,如果缺少某个.dll文件,depends.exe会提示找不到xx.dll文件,这时候需要找到相应的xx.dll文件,将其复制到.ocx文件目录下


我当时是缺少ocx所需动态库

将ocx放进depends中可查看ocx中有没有缺少相关动态库


阅读全文
0 0
原创粉丝点击