Archived

This topic is now archived and is closed to further replies.

bzroom

Window Creation problem?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
#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]

Share this post


Link to post
Share on other sites