When you use Visual Studio for project development, you sometimes encounter the following error:
Unhandled exception at 0X00905A4D in xxx.exe:0xc0000005:access violation
This error can be caused by linking a library file with the suffix "*.a" in Visual Studio, which should be linked to a Linux system or MinGW compile, and the "*.lib" library file should be linked with VS, and the downloaded third-party library will typically contain "*.def" files, such as the Scientific Computing Library LIBGSL, have these two files Libgsl.def and libgslcblas.def, which we can convert to "*.lib" Library files:
Start the "Visual Studio command Lines"
Goto the GSL Lib directory, and type:
Lib/machine:i386/def:libgsl.def
Lib/machine:i386/def:libgslcblas.def
This will generate two files of Libgsl.lib and Libgslcblas.lib, which can be added to the linker.
Solve error:unhandled exception at 0X00905A4D in xxx.exe:0xc0000005:access violation.