load the C runtime library without using a manifest
来源:互联网 发布:ubuntu安装完进入grub 编辑:程序博客网 时间:2024/06/04 19:02
最近在将原来的工程中原来的动态链接库改为静态链接库时遇到这个问题。
首先,附上一些网上搜集到的东西。
-----------------------------------------------------------------------------------------------------
(转)http://blog.csdn.net/smujjiang/article/details/6458172
错误信息:
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
解决办法:
一般这个错误是运行时出错,编译时不会报错。据说是由于调用某些静态库引起。
将编译生成的MyApp.exe.embed.manifest加入到资源文件中即可解决问题。
另外有人说可以通过新建工程来解决。
-----------------------------------------------------------------------------------------------------------
转 MSDN
C Run-Time 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 with 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 building an EXE, 2 if building a DLL. For more information, see How to: Embed a Manifest Inside a C/C++ Application.
最终查看自己的工程设置,发现没有生成清单文件,改
连接器->清单文件->生成清单->是
重新编译通过。
但通常如此在运行时常会遇到“vs2005应用程序正常初始化失败的解决方案”的问题,详见下篇“vs2005应用程序正常初始化失败的解决方案”。
- load the C runtime library without using a manifest
- load the C runtime library without using a manifest
- .....an attempt to load the C runtime library without using a manifest.....
- Using the VC 2005 shared CRT/MFC (DLL) without a manifest is not supported!
- An application has made an attempt to load the C runtime library incorrectly.
- Runtime error R6034 attempt to load C runtime library incorrenctly
- Choosing the Correct C/C++ Runtime Library
- How to import a C library in Swift using the Swift Package Manager
- Modifying a Dynamic Library Without Changing the Source Code
- Delete a node WITHOUT using the HEAD pointer.
- Using the Runtime APIs
- [转]Choosing the Correct C/C++ Runtime Library
- Write a program to convert string to number without using library function。
- A Brief Introduction to the log4net logging library, using C#
- A Scala REST client using the Apache HttpClient library
- Using the Support Library
- Using the Support Library
- Using the iPod Library
- ubuntu常用命令总结
- Heritrix1.14源码分析(1) 包介绍 .
- 4GB到底够不够 Windows 8需要多大容量内存
- 如何解决ADT1异常 java.lang.NoClassDefFoundError
- web.xml配置详解
- load the C runtime library without using a manifest
- 在Eclipse中搭建Heritrix 3.1 .
- drp
- 360私有云发布Windows平台测试版
- Linux中date命令的各种实用方法
- c/c++调用mysql存储过程
- 360杀毒软件安装在windows2003系统的解决方法
- 世界顶级杀毒软件!!!
- 瑞星&360杀软行业之争