Linker, open source errors building 1.5.2 under VC++ 2005 Express
by Chad Harper · in Torque Game Engine · 02/24/2009 (9:40 pm) · 0 replies
When trying to build 1.5.2 in VC++ 2005 Express, I get several LNK2019 errors:
For the opengl2d3d project:
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static unsigned long __cdecl sgD3DCompatibility::sgGetShader(long)" (?sgGetShader@sgD3DCompatibility@@SAKJ@Z) referenced in function "void __cdecl QuakeSetTexturingState(void)" (?QuakeSetTexturingState@@YAXXZ)
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static int * sgD3DCompatibility::sgCombineMode" (?sgCombineMode@sgD3DCompatibility@@2PAHA) referenced in function "void __cdecl QuakeSetTexturingState(void)" (?QuakeSetTexturingState@@YAXXZ)
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static int * sgD3DCompatibility::sgScale" (?sgScale@sgD3DCompatibility@@2PAHA) referenced in function _glTexEnvf@12
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static void __cdecl sgD3DCompatibility::sgInitShaders(void *)" (?sgInitShaders@sgD3DCompatibility@@SAXPAX@Z) referenced in function _wd3dCreateContext@4
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static void __cdecl sgD3DCompatibility::sgDeleteShaders(void *)" (?sgDeleteShaders@sgD3DCompatibility@@SAXPAX@Z) referenced in function _wd3dDeleteContext@4
In glu2d3d, I get:
Cannot open source file: '..enginedglgNewFont.cc'
I cannot find this file anywhere.
I followed the steps listed in the wiki article mentioned elsewhere. I have the Platform SDK and DirectX SDK November 2008 installed as well.
Thanks much in advance for any advice.
For the opengl2d3d project:
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static unsigned long __cdecl sgD3DCompatibility::sgGetShader(long)" (?sgGetShader@sgD3DCompatibility@@SAKJ@Z) referenced in function "void __cdecl QuakeSetTexturingState(void)" (?QuakeSetTexturingState@@YAXXZ)
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static int * sgD3DCompatibility::sgCombineMode" (?sgCombineMode@sgD3DCompatibility@@2PAHA) referenced in function "void __cdecl QuakeSetTexturingState(void)" (?QuakeSetTexturingState@@YAXXZ)
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static int * sgD3DCompatibility::sgScale" (?sgScale@sgD3DCompatibility@@2PAHA) referenced in function _glTexEnvf@12
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static void __cdecl sgD3DCompatibility::sgInitShaders(void *)" (?sgInitShaders@sgD3DCompatibility@@SAXPAX@Z) referenced in function _wd3dCreateContext@4
1>OpenGL2D3D.obj : error LNK2019: unresolved external symbol "public: static void __cdecl sgD3DCompatibility::sgDeleteShaders(void *)" (?sgDeleteShaders@sgD3DCompatibility@@SAXPAX@Z) referenced in function _wd3dDeleteContext@4
In glu2d3d, I get:
Cannot open source file: '..enginedglgNewFont.cc'
I cannot find this file anywhere.
I followed the steps listed in the wiki article mentioned elsewhere. I have the Platform SDK and DirectX SDK November 2008 installed as well.
Thanks much in advance for any advice.