使用Cygwin构建Windows-清单错误 [英] Build for windows with cygwin - manifest error

查看:114
本文介绍了使用Cygwin构建Windows-清单错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用cygwin和带有Visual Studio 2008编译器的ACE makefile为Windows构建ACE + TAO 6.0.1.

除调试版本外,其他一切都很好,很花哨-首先,链接程序找不到msvcr90d,因此我添加了路径,但现在的错误是找不到tao_idl.exe和gperf

错误R6304:
应用程序已尝试在不使用清单的情况下加载C运行时库.这是加载Visual C ++ DLL的不受支持的方法.您需要修改您的应用程序以使用清单进行构建.有关更多信息,请参见产品文档中的"Visual C ++库作为共享的并排程序集"主题.

所以问题是-我如何设置环境变量cygwin指向清单文件,或将其放在哪里(我尝试使用msvc90d和exe文件)

谢谢
Eran

Hi,

I am building ACE + TAO 6.0.1 for windows using cygwin and the ACE makefiles with visual studio 2008 compiler.

Everything is fine and dandy except for the debug versions - first the linker couldn''t find msvcr90d so I added is to the path, but now the error is that is can''t find the manifest files for tao_idl.exe and gperf

error R6304:
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.

so the question is - how do I set an environment variable is cygwin to point to the manifest file or where should I put them (I tried with msvc90d and with the exe files)

Thank you,
Eran

推荐答案

我认为您需要一个类似于以下文件的文件,其名称与您的项目相同,并且扩展名为.manifest:
I think you need a file similar to the following with the same name as your project and the extension .manifest:
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
  <assemblyidentity>
    type="win32"
    name="your project name"
    processorArchitecture="x86"
    version="1.0.0.0"
    />
  <description>your description here.</description>
</assemblyidentity>
</assembly>


这篇关于使用Cygwin构建Windows-清单错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆