Skip to main content
gamedev.net
🔒 Locked

error

Started by Kow Jan 28, 2004 at 7:15 PM 3 replies 300+ views
Original Post
Kow
Kow
bitmap_example error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "public: void __thiscall Cbitmap_exampleDlg::Redraw(class CRect)" (?Redraw@Cbitmap_exampleDlg@@QAEXVCRect@@@Z) The code above is the error i get after i put some of the code in MFC....can anyone of you tell me what is the error about? Thanxx ya
c
porthios
porthios
You have to link in the right libraries. I guess in this case linking with opengl32.lib will be sufficient.
Kow
Kow
Halo......Thanx for giving me the hint. But i still get this thype of erros after i configure the property page, and put in both the library manualy....wat the other factor may cause tthis problem?
c
xboxor
xboxor
Show us your code. To use the opengl function glClear(), you must link with the opengl32.lib library. If you comment that glClear() call, it should work. If it does, but gives you an error when you uncomment it, then you aren''t linking the opengl32.lib library properly.

"Java is high performance. By high performance we mean adequate. By adequate we mean slow." - Mr. Bunny


"Java is high performance. By high performance we mean adequate. By adequate we mean slow." - Mr. Bunny

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.