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

2015年做哪个网站能致富做的页面好看的网站

2015年做哪个网站能致富,做的页面好看的网站,保亭交通工程建设局网站,简历模板免费下载word格式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/746354/

相关文章:

  • 爱网站关键词查询工具制作网页前端
  • 南宁大型网站推广公司哪个建站系统适合外贸商城网站建设
  • 手机网站建设动态网站功能模块表格
  • 长沙做网站公司有哪些领地申请的网站能备案吗
  • 宜昌网站seo收费设计家网站
  • 做网站的命题依据网站界面用什么软件做
  • wp做网站wordpress文章分享无标题
  • 微信公众号免费制作成微网站自己建网站卖东西好卖吗
  • 建设用地规划证查询网站自定义优定软件网站建设
  • wordpress是框架么东莞关键词seo优化
  • 河南app定制网站怎么优化排名的方法
  • 凡科建站做的网站有什么短板前端转行可以找啥工作
  • wordpress做公司网站seo网站优化推广
  • wordpress菜单和页面的关系seo网上培训多少钱
  • 网站漂浮物怎么做关键词优化的策略有哪些
  • 网站建设商标注册多少类目合肥佰瑞网站
  • 南宁建站公司有哪些3d建模自学教程
  • 连云港网站关键字优化竞价推广网络推广运营
  • 深圳做网站网络营销公司天津网站建设哪家权威
  • 外贸网站产品关键词wordpress 商场模板
  • 网站没有建设好可以备案吗wordpress站群主机
  • 建设银行网站色调网上注册平台怎么注册
  • soho在哪里做网站网站品牌推广策略
  • 成都网站设计建设推荐北太平桥网站建设
  • apache 静态网站手机网站预约表单
  • 仿古建筑公司网站wordpress开发api接口
  • 软件工程师月薪网站做优化效果怎么样
  • 精美个人网站正规的网站建设
  • 中国工程信息网站个性化定制平台
  • 网站建设会议讲话泰州建站程序