Solve Error: Unhandled exception at 0x00905a4d in xxx.exe: 0xC0000005: Access violation.
2017-11-04 00:54
585 查看
在使用Visual Studio进行项目开发的时候,有时候会遇到下面这个错误:
Unhandled exception at 0x00905a4d in xxx.exe: 0xC0000005: Access violation
产生这个错误的原因可能是在Visual Studio中链接了后缀为"*.a"的库文件,这种库文件应该是在Linux系统或者是使用MinGW编译时链接的,用VS的话应该链接"*.lib"的库文件,而下载的第三方库中一般会包含"*.def"文件,比如科学计算库libgsl里就有这两个文件libgsl.def和libgslcblas.def,我们可以将其转换为"*.lib"的库文件:
Start the "Visual Studio 2010 command lines"
Goto the gsl lib directory, and type:
lib /machine:i386 /def:libgsl.def
lib /machine:i386 /def:libgslcblas.def
这会生成libgsl.lib和libgslcblas.lib这两个文件,加到Linker中即可。
Unhandled exception at 0x00905a4d in xxx.exe: 0xC0000005: Access violation
产生这个错误的原因可能是在Visual Studio中链接了后缀为"*.a"的库文件,这种库文件应该是在Linux系统或者是使用MinGW编译时链接的,用VS的话应该链接"*.lib"的库文件,而下载的第三方库中一般会包含"*.def"文件,比如科学计算库libgsl里就有这两个文件libgsl.def和libgslcblas.def,我们可以将其转换为"*.lib"的库文件:
Start the "Visual Studio 2010 command lines"
Goto the gsl lib directory, and type:
lib /machine:i386 /def:libgsl.def
lib /machine:i386 /def:libgslcblas.def
这会生成libgsl.lib和libgslcblas.lib这两个文件,加到Linker中即可。
相关文章推荐
- Unhandled exception at 0x007be7e0 in test.exe: 0xC0000005: Access violation writing location 0x00000
- Unhandled exception at 0x00000000 in CallDll.exe: 0xC0000005: Access violation reading location 0x00
- Unhandled exception at 0x008f9b82 in .exe: 0xC0000005: Access violation reading location 0x00000298.
- Unhandled exception at 0x........ in XXXX.exe: 0xC0000005:Access violation reading location 0x......
- First-chance exception at 0x774CEB23 (ntdll.dll) in XXX.exe: 0xC0000005: Access violation writing
- Unhandled exception at 0x........ in XXXX.exe: 0xC0000005:Access violation reading location 0x......
- 生成成功,调试时出现错误导致中断Unhandled exception at 0x41cd7fb0 in webcam.exe: 0xC0000005: Access violatio
- 解决VC 类向导添加变量后莫名其妙出现 Unhandled exception in xxx.exe:0xC0000005:Access Violation错误的问题
- 遇到"Unhandled exception in app.exe (QTGUID4.DLL): 0xC0000005: Access Violation"错误的解决过程
- 关于出现Unhandled exception at 0x091f11c7 in ****: 0xC0000005: Access violation reading location 0x0ab0f
- First-chance exception at 0x000007FE86D99B3C in XXXX.exe: 0xC0000005: Access violation reading locat
- "Unhandled exception in app.exe (QtGuid4.dll): 0xC0000005: Access Violation"错误解决
- 就会报Unhandled exception at 0x1000a0ce (Libnet.dll) in tcp1.exe: 0xC0000005: Access violation reading location 0xfffffe64.错误。 请问为什
- opencv2.1 cvWriteFrame出问题 Unhandled exception at 0x0f941f15 in opencv_test.exe: 0xC0000005: Access v
- First-chance exception in MFCDibImshow.exe: 0xC0000005: Access Violation.
- 对话框导入图片 出现unhandled exception in xxxexe 0xC0000005:Access Violation 错误
- Unhandled exception at 0x in xxx.exe: Privileged instruction.
- unhandled exception in .exe :0xC0000005:Access Violation.
- Unhandled exception at 0x........ in XXXX.exe: 0xC0000005:错误
- 如何解决 xxx.exe (KERNEL32.DLL): 0xC0000005: Access Violation.