Linking errors using OpenGL
Mehamli, Tristan
tmehamli at mc.com
Wed May 2 01:18:56 PDT 2007
Hi everyone,
I'm using OpenGL with wxWidgets and everything is compiling fine except
during the linking process. I had these errors :
1>Linking...
1>OGLCanvas.obj : error LNK2001: unresolved external symbol "protected:
static struct wxEventTable const wxGLCanvas::sm_eventTable"
(?sm_eventTable at wxGLCanvas@@1UwxEventTable@@B)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol "public:
virtual __thiscall wxGLCanvas::~wxGLCanvas(void)"
(??1wxGLCanvas@@UAE at XZ) referenced in function
__unwindfunclet$??0OGLCanvas@@QAE at PAVwxWindow@@HABVwxPoint@@ABVwxSize@@J
ABVwxString@@@Z$0
1>OGLCanvas.obj : error LNK2019: unresolved external symbol "public:
__thiscall wxGLCanvas::wxGLCanvas(class wxWindow *,int,class wxPoint
const &,class wxSize const &,long,class wxString const &,int *,class
wxPalette const &)"
(??0wxGLCanvas@@QAE at PAVwxWindow@@HABVwxPoint@@ABVwxSize@@JABVwxString@@P
AHABVwxPalette@@@Z) referenced in function "public: __thiscall
OGLCanvas::OGLCanvas(class wxWindow *,int,class wxPoint const &,class
wxSize const &,long,class wxString const &)"
(??0OGLCanvas@@QAE at PAVwxWindow@@HABVwxPoint@@ABVwxSize@@JABVwxString@@@Z
)
1>OGLCanvas.obj : error LNK2001: unresolved external symbol "public:
virtual class wxClassInfo * __thiscall
wxGLCanvas::GetClassInfo(void)const "
(?GetClassInfo at wxGLCanvas@@UBEPAVwxClassInfo@@XZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol "public:
virtual __thiscall OGLCanvas::~OGLCanvas(void)" (??1OGLCanvas@@UAE at XZ)
referenced in function "public: virtual void * __thiscall
OGLCanvas::`scalar deleting destructor'(unsigned int)"
(??_GOGLCanvas@@UAEPAXI at Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glEnd at 0 referenced in function "private: void __thiscall
OGLCanvas::drawScene(void)" (?drawScene at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glVertex3i at 12 referenced in function "private: void __thiscall
OGLCanvas::drawScene(void)" (?drawScene at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glNormal3f at 12 referenced in function "private: void __thiscall
OGLCanvas::drawScene(void)" (?drawScene at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glColor3f at 12 referenced in function "private: void __thiscall
OGLCanvas::drawScene(void)" (?drawScene at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glBegin at 4 referenced in function "private: void __thiscall
OGLCanvas::drawScene(void)" (?drawScene at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol "public:
void __thiscall wxGLCanvas::SwapBuffers(void)"
(?SwapBuffers at wxGLCanvas@@QAEXXZ) referenced in function "protected:
void __thiscall OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glFlush at 0 referenced in function "protected: void __thiscall
OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glMultMatrixf at 4 referenced in function "protected: void
__thiscall OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glTranslatef at 12 referenced in function "protected: void
__thiscall OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glLoadIdentity at 0 referenced in function "protected: void
__thiscall OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glClear at 4 referenced in function "protected: void __thiscall
OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glClearColor at 16 referenced in function "protected: void
__thiscall OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol "public:
void __thiscall wxGLCanvas::SetCurrent(void)"
(?SetCurrent at wxGLCanvas@@QAEXXZ) referenced in function "protected: void
__thiscall OGLCanvas::OnPaint(class wxPaintEvent &)"
(?OnPaint at OGLCanvas@@IAEXAAVwxPaintEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol "public:
void __thiscall wxGLCanvas::OnSize(class wxSizeEvent &)"
(?OnSize at wxGLCanvas@@QAEXAAVwxSizeEvent@@@Z) referenced in function
"protected: void __thiscall OGLCanvas::OnSize(class wxSizeEvent &)"
(?OnSize at OGLCanvas@@IAEXAAVwxSizeEvent@@@Z)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glMaterialfv at 12 referenced in function "private: void __thiscall
OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glColorMaterial at 8 referenced in function "private: void
__thiscall OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glLightfv at 12 referenced in function "private: void __thiscall
OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glHint at 8 referenced in function "private: void __thiscall
OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glShadeModel at 4 referenced in function "private: void __thiscall
OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glEnable at 4 referenced in function "private: void __thiscall
OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glDisable at 4 referenced in function "private: void __thiscall
OGLCanvas::initOpenGL(void)" (?initOpenGL at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
_gluPerspective at 32 referenced in function "private: void __thiscall
OGLCanvas::resetProjectionMode(void)"
(?resetProjectionMode at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glMatrixMode at 4 referenced in function "private: void __thiscall
OGLCanvas::resetProjectionMode(void)"
(?resetProjectionMode at OGLCanvas@@AAEXXZ)
1>OGLCanvas.obj : error LNK2019: unresolved external symbol
__imp__glViewport at 16 referenced in function "private: void __thiscall
OGLCanvas::resetProjectionMode(void)"
(?resetProjectionMode at OGLCanvas@@AAEXXZ)
1>\\...\OGLWxW\Debug\OGLWxW.exe : fatal error LNK1120: 29 unresolved
externals
1>Build log was saved at "...\OGLWxW\OGLWxW\Debug\BuildLog.htm"
1>OGLWxW - 30 error(s), 0 warning(s)
Does someone know what the problem is?
I'm using VC 2005 on XP + SP2, on a core 2 duo.
More information about the wx-users
mailing list