C++ Visual Studio 2012 升级后出现“Module was built without symbols”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19383772/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 22:45:53  来源:igfitidea点击:

"Module was built without symbols" error appeared after Visual studio 2012 upgrade

c++windowsdllsymbols

提问by user2882928

I was previously using visual studio 2012, but after a recent windows upgrade it started to complain that it is now incompatible. I upgraded windows 7 and incompatibility message went away from Visual studio 2012, but I have a new problem now. The solutions that were running before are not running now. I am using a proprietary libary (cdt.dll and cdt.lib files) for my script.

我之前使用的是 Visual Studio 2012,但在最近的 Windows 升级之后,它开始抱怨它现在不兼容。我升级了 Windows 7 并且不兼容消息从 Visual Studio 2012 中消失了,但我现在遇到了一个新问题。之前运行的解决方案现在没有运行。我正在为我的脚本使用专有库(cdt.dll 和 cdt.lib 文件)。

Visual studio is now producing the following message I have not seen before:

Visual Studio 现在正在生成我以前从未见过的以下消息:

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded  C:\Users\CCPAdmin\Desktop\cpp\cpp_applications\extract by block\tmt_gygi_700ms120mlmin_mob_f2\Debug\tmt_gygi_700ms120mlmin_mob_f2.exe'. Symbols loaded.

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded 'C:\Users\CCPAdmin\Desktop\cpp\cpp_applications\extract by block\tmt_gygi_700ms120mlmin_mob_f2\Debug\cdt.dll'. Module was built without symbols.

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded.

'tmt_gygi_700ms120mlmin_mob_f2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded.

The program '[8104] tmt_gygi_700ms120mlmin_mob_f2.exe' has exited with code 0 (0x0).

I presume the problem is the cdt.dll "Module was built without symbols".

我认为问题是 cdt.dll "Module was built without symbols"

Any suggestions?

有什么建议?

回答by Luchian Grigore

The program '[8104] tmt_gygi_700ms120mlmin_mob_f2.exe' has exited with code 0 (0x0).means your application ran succesfully. The message you're seeing simply means there is no debug info available and isn't a concern (unless you want to debug cdt.dllin which case you need compatible pdb files).

The program '[8104] tmt_gygi_700ms120mlmin_mob_f2.exe' has exited with code 0 (0x0).意味着您的应用程序运行成功。您看到的消息只是意味着没有可用的调试信息,这不是问题(除非您要调试,cdt.dll在这种情况下您需要兼容的 pdb 文件)。

回答by luturol

I had a similar problem now using VS 2017 15.9.11 when tried to debug some test, my message error was:

当我尝试调试一些测试时,我现在使用 VS 2017 15.9.11 遇到了类似的问题,我的消息错误是:

'testhost.x86.exe' (CLR v4.0.30319: testhost.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\TESTPLATFORM\pt-BR\Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll'. Module was built without symbols. 'testhost.x86.exe' (CLR v4.0.30319: testhost.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\TESTPLATFORM\pt-BR\Microsoft.TestPlatform.CrossPlatEngine.resources.dll'. Module was built without symbols. The program '[6308] testhost.x86.exe' has exited with code -1 (0xffffffff).

“testhost.x86.exe”(CLR v4.0.30319:testhost.x86.exe):加载“C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\TESTPLATFORM\pt-BR \Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll'。模块是在没有符号的情况下构建的。“testhost.x86.exe”(CLR v4.0.30319:testhost.x86.exe):加载“C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\EXTENSIONS\TESTPLATFORM\pt-BR \Microsoft.TestPlatform.CrossPlatEngine.resources.dll'。模块是在没有符号的情况下构建的。程序“[6308] testhost.x86.exe”已退出,代码为 -1 (0xffffffff)。

I've solved by adding [TestClass]annotation in the class declaration. VS doesn't have a clear message to this error.

我已经通过[TestClass]在类声明中添加注释来解决。VS 没有针对此错误的明确消息。

回答by Ketaki Joshi

If it is Python, go to project->Properties->Debug-> uncheck 'Enable native code debugging'

如果是Python,去project->Properties->Debug->取消勾选'Enable native code debugging'

For C++ , go to tools-> options->debugging->general->uncheck 'Enable just my code'

对于 C++ ,转到工具-> 选项-> 调试-> 常规-> 取消选中“仅启用我的代码”