2013-02-10 66 views
0

我试图建立SDL为Visual Studio C++ 2010速成,但运行一个简单的程序时SDL安装Visual Studio的

#include "SDL.h" 

int main(int argc, char* args[]) { 
    //Start SDL 
    SDL_Init(SDL_INIT_EVERYTHING); 

    SDL_Quit(); 
    return 0; 
} 

然后我不断得到下面的错误,我得到以下错误

'SDLtest.exe': Loaded 'C:\Users\Sean Kwon\Desktop\c++_programs\SDLtest\Debug\SDLtest.exe', Symbols loaded. 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\SDL.dll', Binary was not built with debug information. 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\ddraw.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\dwmapi.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\oleaut32.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\ole32.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll' 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\dciman32.dll' 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL' 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file 
'SDLtest.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL' 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\hid.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file 
'SDLtest.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file 
The thread 'Win32 Thread' (0x15e4) has exited with code 0 (0x0). 
The thread 'Win32 Thread' (0x150c) has exited with code 0 (0x0). 
The program '[5584] SDLtest.exe: Native' has exited with code 0 (0x0). 

我加入该.dll文件夹在我的文件夹SYSWOW64,但我仍然得到同样的错误...

+0

该输出中没有致命错误。你的应用程序运行并返回'0'。 – Chad 2013-02-10 23:50:26

+0

是不是应该输出一个窗口? – 2013-02-10 23:51:53

+0

初始化视频并在代码中放置一段时间(1)。 – 2013-02-10 23:54:32

回答

1

您的代码已成功执行并返回0

“无法找到或打开PDB文件” 您可以放心地忽略大部分的这些警告。这些警告意味着编译器无法找到列出的dll的调试信息。这用于加载外部依赖关系的符号,例如,IDE链接到内部或OS API使用的符号,通常不需要程序中的基本调试。

尝试these tutorials或参阅SDL文档以获取有关设置和使用SDL的更多帮助。

0

未找到PDB文件,这意味着您需要获取它们。

工具 - >选项 - >调试 - >符号

检查 'Microsoft符号服务器' 来加载你缺少的符号。