gtest 示例的Debug版啟動(dòng)報(bào)錯(cuò):
Debug輸出如下:
'sample1_unittest.exe': Loaded 'D:\LibSrc\gtest_1.7.0_build\Debug\sample1_unittest.exe', Symbols loaded.'sample1_unittest.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file'sample1_unittest.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file'sample1_unittest.exe': Loaded 'D:\LibSrc\gtest_1.7.0_build\Debug\gtest_main.dll', Symbols loaded.SXS: RtlCreateActivationContext() failed 0xc000000dLDR: LdrpWalkImportDescriptor() failed to probe D:\LibSrc\gtest_1.7.0_build\Debug\gtest_main.dll for its manifest, ntstatus 0xc000000dDebugger:: An unhandled non-continuable exception was thrown during process loadThe program '[3824] sample1_unittest.exe: Native' has exited with code -1073741811 (0xc000000d).
Rebuild無效,重裝VC無效。
將Manifest輸出改為No就好了。
估計(jì)是VC2010的錯(cuò)誤。奇怪的是再次改回Yes后重建仍然是好的,同樣的vcxproj輸出不一樣?
應(yīng)該與系統(tǒng)也有關(guān),可能重裝系統(tǒng)就會(huì)好。其他機(jī)器沒有該錯(cuò)誤。
方法來自:http://blog.chenfeisoft.com/post/2013/06/10/SXS-RtlCreateActivationContext%28%29-failed-0xc000000d.aspx
dll工程配置里將輸出清單文件選為no, rebuild, 再改回yes
Powered by: C++博客 Copyright © 金慶