| 查看: 2419 | 回復: 11 | ||
[求助]
用opengl做了個工程,編譯無錯誤,但是運行不起來。。。
|
|
按照如下配置: VS2005/2008下如何配置OpenGL函數庫 1,下載OpenGL庫文件: 1、http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip 。 2,對相應庫文件進行放置: a,把.h文件放到\Program Files\Microsoft Visual Studio 8\VC\Include\GL文件夾中,如果沒有GL文件夾就自己建一個,我的就是自己建的。 b,把.lib文件放到\Program Files\Microsoft Visual Studio 8\VC\lib文件夾中; 把.dll文件放到system32文件夾中。 建立工程后, c,選擇項目->屬性-> C\C++-->preprocessor(預處理器)-->preprocessor definition(預處理器定義),添加GLUT_BUILDING_LIB,中間用分號隔開。 d,然后點擊linker(鏈接器)->Input(輸入)->additional dependencies(附加依賴項)添加glut32.lib Opengl32.lib Glu32.lib 結束,這樣就可以使用了。 |

至尊木蟲 (著名寫手)
驃騎將軍

金蟲 (文壇精英)
老漢一枚

|
這個應該問題不大吧,我調試了以后,問題顯示: Loaded symbols for 'C:\Program Files\Microsoft Visual Studio\MyProjects\1\Debug\1.exe' Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\glut32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\opengl32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\glu32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ddraw.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\dciman32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found. Loaded symbols for 'C:\WINDOWS\system32\MFC42D.DLL' Loaded symbols for 'C:\WINDOWS\system32\MSVCRTD.DLL' Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\lpk.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\usp10.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\mfc42loc.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found. The thread 0x3E4 has exited with code -1073741819 (0xC0000005). The thread 0xB00 has exited with code -1073741819 (0xC0000005). The program 'C:\Program Files\Microsoft Visual Studio\MyProjects\1\Debug\1.exe' has exited with code -1073741819 (0xC0000005). |

木蟲 (正式寫手)

木蟲 (正式寫手)

木蟲 (正式寫手)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調劑 +4 | Mqqqqqq 2026-03-19 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 一志愿吉林大學材料學碩321求調劑 +11 | Ymlll 2026-03-18 | 14/700 |
|
|
[考研] 一志愿武漢理工材料工程專碩調劑 +7 | Doleres 2026-03-19 | 7/350 |
|
|
[考研] 08工學調劑 +4 | 用戶573181 2026-03-20 | 4/200 |
|
|
[考研] 材料學碩318求調劑 +5 | February_Feb 2026-03-19 | 5/250 |
|
|
[考研] 一志愿蘇州大學材料求調劑,總分315(英一) +3 | sbdksD 2026-03-19 | 3/150 |
|
|
[考研] 288求調劑,一志愿華南理工大學071005 +5 | ioodiiij 2026-03-17 | 5/250 |
|
|
[考研] 材料考研調劑 +3 | xwt。 2026-03-19 | 3/150 |
|
|
[考研] 一志愿中海洋材料工程專碩330分求調劑 +7 | 小材化本科 2026-03-18 | 7/350 |
|
|
[考研] 一志愿985,本科211,0817化學工程與技術319求調劑 +10 | Liwangman 2026-03-15 | 10/500 |
|
|
[考研] 330求調劑 +3 | 小材化本科 2026-03-18 | 3/150 |
|
|
[考研] 295求調劑 +3 | 一志愿京區(qū)211 2026-03-18 | 5/250 |
|
|
[考研] 311求調劑 +11 | 冬十三 2026-03-15 | 12/600 |
|
|
[考研] 材料,紡織,生物(0856、0710),化學招生啦 +3 | Eember. 2026-03-17 | 9/450 |
|
|
[考研] 301求調劑 +4 | A_JiXing 2026-03-16 | 4/200 |
|
|
[考研] 290求調劑 +3 | p asserby. 2026-03-15 | 4/200 |
|
|
[考研] 275求調劑 +4 | 太陽花天天開心 2026-03-16 | 4/200 |
|
|
[考研] 278求調劑 +3 | Yy7400 2026-03-13 | 3/150 |
|
|
[考研] 求老師收留調劑 +4 | jiang姜66 2026-03-14 | 5/250 |
|
|
[考研] 070305求調劑 +3 | mlpqaz03 2026-03-14 | 4/200 |
|