2013-02-10 86 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符號服務器' 來加載你缺少的符號。