Skip to main content
gamedev.net
🔒 Locked

Window Creation problem?

Started by bzroom 1 reply 450+ views
Original Post
bzroom
bzroom
When I try to create my window I get these linker errors: Window.obj : error LNK2019: unresolved external symbol __imp__wglMakeCurrent@8 referenced in function "public: bool __thiscall cWindow::Create(char *,int,int,bool)" (?Create@cWindow@@QAE_NPADHH_N@Z) Window.obj : error LNK2019: unresolved external symbol __imp__wglCreateContext@4 referenced in function "public: bool __thiscall cWindow::Create(char *,int,int,bool)" (?Create@cWindow@@QAE_NPADHH_N@Z) Debug/ToolBox.exe : fatal error LNK1120: 2 unresolved externals I''m including windows.h. I thought maybe it was cause I was calling them from inside a class, but then I put them in a function outside the class and it still didnt work. I tried including gl.h but that didnt'' help either. Is there some dll I need to include? Thank you.
bzroom
bzroom
I hate when I do this, while posting I figure out a possible solution and it works.

I included these librarys, im not sure which one did it but im sure it works.

winmm.lib opengl32.lib glu32.lib glaux.lib odbc32.lib odbccp32.lib

Id say it was the first.
tHiSiSbOb
tHiSiSbOb
#pragma comment (lib,"opengl32.lib")
#pragma comment (lib,"glu32.lib")

Try putting these under your #includes

EDIT: Lol...I didn't see your own response.. It is opengl32.lib

[edited by - tHiSiSbOb on January 3, 2004 7:05:12 PM]



[edited by - tHiSiSbOb on January 3, 2004 7:06:03 PM]
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.

Topic Locked

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

Sign in to reply to this topic.