当前位置: 首页 > news >正文

企业手机网站建设教程WordPress快捷登录如何关闭

企业手机网站建设教程,WordPress快捷登录如何关闭,网络营销的主要推广方式,南宁模板建站定制网站1、问题描述 这两天一直在用vs2008编写一个小项目,需要在c代码中通过命令行的方式调用cl.exe和link.exe,也就是给编译器cl和链接器link传递参数,然后编译链接生成可执行文件exe.最终生成的result.exe运行时老出现Runtime Error R6034 An appl…

1、问题描述

      这两天一直在用vs2008编写一个小项目,需要在c++代码中通过命令行的方式调用cl.exe和link.exe,也就是给编译器cl和链接器link传递参数,然后编译链接生成可执行文件exe.最终生成的result.exe运行时老出现Runtime Error R6034 An application has made an attempt to load the C runtime library incorrectly.的错误,围绕这个问题,我查了两天的资料,最后终于解决了。。

  在此简单的记录一下解决方法,方便以后用到。

2、问题解决

  在利用命令行的方式编译链接生成可执行文件之前,可以将需要传递给cl.exe的源程序(.cpp,.h)文件拎出来,利用这些源文件手动的创建一个vs2008工程,然后编译链接这个vs2008工程生成可执行文件。做这一步是为了保证生成的可执行文件是你本人需要的结果,如果这个手动工程都不能生成你需要的exe,那通过命令行的方式生成的exe肯定就不是你想要得到的结果。

  生成好vs2008工程并且执行正确后,在这个工程的项目--->属性-->c/c++--->命令行,你会看到一大堆的命令,其实这就是传递给cl.exe的命令,同样的道理,在项目--->属性-->链接器--->命令行中可以看到传递给link.exe的命令。

  按照上面所说的方法,我在自己的项目中编写好自动生成exe 的代码生成一个exe。然后点击这个exe,就出现Runtime Error R6034 。

  下面贴上解决该问题的原文:

  An application has made an attempt to load the C runtime library without using a manifest. This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest. For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assemblies" topic in the product documentation.
  Applications must use a manifest to load the C runtime library. For more information, see Visual C++ Libraries as Shared Side-by-Side Assemblies and Manifest Generation in Visual Studio.
In release builds, the diagnostic message reads: "An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information."
  To correct this error
  Rebuild your application to include a manifest. Building an application with Visual Studio automatically puts the manifest into the resulting .exe or .dll file. If you are building at the command line, use the mt.exe tool to add the manifest as a resource. Use resource ID 1 if you build an .exe, and resource ID 2 if you build a .dll. For more information, see How to: Embed a Manifest Inside a C/C++ Application.

  重点是这一句:If you are building at the command line, use the mt.exe tool to add the manifest as a resource. Use resource ID 1 if you build an .exe, and resource ID 2 if you build a .dll. For more information, see How to: Embed a Manifest Inside a C/C++ Application.

  按照这个说法,命令行不仅需要调用cl.exe和link.exe,还需要调用一个叫mt.exe的,mt.exe的参数其实在上文创建的vs2008工程下项目--->属性--->清单工具---->命令行有相关的命令参数。在命令中添加这一个命令之后重新执行,问题就可解决了。

转载于:https://www.cnblogs.com/LCCRNblog/p/4547892.html

http://www.yayakq.cn/news/589477/

相关文章:

  • 宁波公司做企业网站校园网站建设的请示
  • 网站全屏弹出窗口分切机网站建设
  • python网站开发框架晋中企业网站建设
  • 湖州童装网站自助做网站
  • 网站建设与维护课件wordpress 网站内跳转
  • 镜像别人网站做排名的好处昆山的网站建设
  • 网站开发的疑虑青岛制作网站软件
  • 互联网网站案例室内设计平面图案例
  • 网站二级域名建站属于子站吗天津网站建设58
  • 网站短片怎么做网站源码什么意思
  • 做网站用的语言商梦建站
  • 东莞大岭山镇网站建设中国500强企业排行榜
  • 贵阳建站模板给公司建立网站不可以做到的是
  • 做一件代发哪个网站好搞钱的路子网站
  • 湘潭做网站价格优选磐石网络品牌运动鞋排行榜前十名
  • 我想买个空间自己做网站瓯北网站制作系统
  • 企业网站设计的要求网站开发取名
  • 上海做网站的公司多少钱广州市建设工程交易网
  • 互动创意网站10个好用的wordpress投票_评分插件
  • 手把手教你做网站7WordPress动漫风CMS
  • 毕节市网站建设58同城wordpress 文章评分
  • 深圳制作网站建设专业网站定制 北京
  • 珠海网站建设模板苏州市住房和城乡建设局网站
  • 单位网站建设费如何入账网页设计公司简介范文
  • 怎么做网站账号注册机电子商务营销手段
  • 河南建设监理协会新网站电子商务网站建设与维护书
  • 西安城乡住房建设厅网站成都做app定制开发多少钱
  • 贵阳网站建设宏思锐达网站内容作弊的形式
  • 诸暨营销型网站设计网页传奇游戏怎么注销
  • 建设银行贵阳银行下载官方网站如何寻找做企业网站的