构建win32 dll的发行版x64配置时出现致命错误。 [英] Fatal Error when building release x64 configuration of a win32 dll.

查看:120
本文介绍了构建win32 dll的发行版x64配置时出现致命错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

Hello All,

我在构建C ++ win32 Dll项目时出现以下错误:

I'm getting the following error when I build my C++ win32 Dll project:

3> d:\ Path_to_source_file\source.cpp :致命错误C1083:无法打开编译器中间文件:'。 .\Path_to_\filename.ipdb':空间不足

3>d:\Path_to_source_file\source.cpp : fatal error C1083: Cannot open compiler intermediate file: '..\Path_to_\filename.ipdb': Not enough space

我在Windows 10上使用visual studio 2015版本14.0.25431.01 Update 3 。

I'm using visual studio 2015 Version 14.0.25431.01 Update 3, on Windows 10.

这只发生在我构建发布配置时(即整个程序优化设置为"使用链接时间代码生成"),调试配置构建没有问题。

This only happens when I build the release configuration (i.e. Whole Program Optimization set to "Use Link Time Code Generation), the debug configuration builds without issue.

win32 Dll项目有几个静态的lib项目依赖项。

The win32 Dll project has several static lib project dependencies.

"source.cpp""上面错误中引用的文件属于其中一个静态库。

The "source.cpp" file referenced in the error above belongs to one of those static libs.

硬盘上有足够的空间(> 100gigs)。

There's plenty of space on the hard drive ( > 100gigs).

win32dll.ipdb文件的大小(在构建失败时)是639,856 KB。

The size of the win32dll.ipdb file (at the point of the build failure) is 639,856 KB.

任何帮助将不胜感激。

Any help would be appreciated.

谢谢。

推荐答案

你好Zed, 

Hi Zed, 

不确定发布版本环境中的详细配置。为了缩小问题范围,我建议禁用"链接时间代码生成"。并删除ipdb文件,然后重试。

Not sure the detail configuration in your release build environment. In order to narrow down the issue, I suggest to disable the "Link Time Code Generation" and delete the ipdb file, then try again.

还建议您查看您的项目是否有一些特殊配置。您可以创建一个空的Windows dll项目,并将项目文件(* .vcxproj)与您的项目文件进行比较。

Also suggest you to find out whether your project has some special configuration or not. You could create an empty windows dll project and compare the project file (*.vcxproj) with yours.

希望这可以帮助您。


这篇关于构建win32 dll的发行版x64配置时出现致命错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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