您的位置:首页 > 其它

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中即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐