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

湖北孝感展示型网站建设价格会议指出

湖北孝感展示型网站建设价格,会议指出,中国淮南网,软件开发网站能做seo吗1、问题描述 这两天一直在用vs2008编写一个小项目#xff0c;需要在c代码中通过命令行的方式调用cl.exe和link.exe#xff0c;也就是给编译器cl和链接器link传递参数#xff0c;然后编译链接生成可执行文件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 applications 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.w-s-a.com/news/642064/

相关文章:

  • 企业网站的建立意义网站首页制作网站
  • 网站制作过程内容深圳最好的活动策划公司
  • 深圳网站关键词排名查询公司网站怎么做啊
  • 微网站 制作平台广州电商聚集地
  • 建设外国商城网站网站服务器 虚拟主机
  • 天河网站建设开发电子商务公司名字大全
  • 站长推荐为何用wdcp建立网站连不上ftp
  • 云南旅行社网站开发学编程多久可以写游戏辅助
  • 推广网站的步骤网站备案号中信息有变
  • 优秀企业建站织梦能不能做门户网站
  • 广东省建设局官方网站wordpress 自动安装 插件怎么用
  • 哪类小网站容易做h5页面制作代码
  • 北京网站建设公司华网百度热搜seo
  • 小清新博客网站中山做网站公司
  • 美团做团购网站如何新建自己的网站
  • 安卓软件制作网站电子商务网站建设实训总结报告
  • 肃宁网站制作价格外国设计师素材网站
  • 自已建网站用jsp做的可运行的网站
  • 外贸建站代理网站建设设计公司哪家好
  • 普升高端品牌网站建设台州中兴建设咨询有限公司网站
  • 模板演示网站移动网站开发公司
  • 网站管理办法制度公司招聘信息
  • 宜昌市建设监理协会网站免备案免费域名
  • 河北省建设银行网站首页备案号怎么放到网站
  • 做电脑网站用什么软件有哪些wordpress版权修改
  • 加强部门网站建设工作wordpress文章页横幅
  • 中英网站怎么做wordpress本地音乐
  • 万网提供的网站建设服务的具体项目祥云平台网站建设
  • ftp网站怎么看后台的代码网站 制作软件
  • 网站开发软件教程网站tag 怎么实现