gtest 示例的Debug版啟動報錯:
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就好了。
估計是VC2010的錯誤。奇怪的是再次改回Yes后重建仍然是好的,同樣的vcxproj輸出不一樣?
應該與系統也有關,可能重裝系統就會好。其他機器沒有該錯誤。
方法來自:http://blog.chenfeisoft.com/post/2013/06/10/SXS-RtlCreateActivationContext%28%29-failed-0xc000000d.aspx
dll工程配置里將輸出清單文件選為no, rebuild, 再改回yes
Powered by: C++博客 Copyright © 金慶