如何修复Windows 8.1中的崩溃C?

我正在用MinGW Gcc使用代码块。 编译构build工作正常,但是当我执行它运行时崩溃:

在这里输入图像说明

main.c中:

#include <stdio.h> #include <stdlib.h> #include <vlc/vlc.h> #include <vlc/libvlc.h> #include <windows.h> int main(int argc, char **argv) { libvlc_instance_t *vlc; vlc = libvlc_new (0, NULL); return 0; } 

生成日志:

 -------------- Clean: Debug in rtsp (compiler: GNU GCC Compiler)--------------- Cleaned "rtsp - Debug" -------------- Build: Debug in rtsp (compiler: GNU GCC Compiler)--------------- mingw32-gcc.exe -Wall -g -I"C:\Program Files (x86)\VideoLAN\VLC\sdk\include" -c C:\Users\sunuser\Desktop\c\rtsp\main.c -o obj\Debug\main.o C:\Users\sunuser\Desktop\c\rtsp\main.c: In function 'main': C:\Users\sunuser\Desktop\c\rtsp\main.c:8:24: warning: variable 'vlc' set but not used [-Wunused-but-set-variable] mingw32-g++.exe -L"C:\Program Files (x86)\VideoLAN\VLC\sdk\lib" -o bin\Debug\rtsp.exe obj\Debug\main.o -I"C:\Program Files (x86)\VideoLAN\VLC\sdk\include" "C:\Program Files (x86)\VideoLAN\VLC\sdk\lib\vlc.lib" "C:\Program Files (x86)\VideoLAN\VLC\sdk\lib\vlccore.lib" "C:\Program Files (x86)\VideoLAN\VLC\sdk\lib\libvlc.lib" Output file is bin\Debug\rtsp.exe with size 29.64 KB Process terminated with status 0 (0 minute(s), 1 second(s)) 0 error(s), 1 warning(s) (0 minute(s), 1 second(s)) 

为什么发生这种情况?

我怎样才能解决这个问题?

Solutions Collecting From Web of "如何修复Windows 8.1中的崩溃C?"