Re: Visual Studio 2003 Linker Error




<mustang.v@xxxxxxxxx> wrote in message
news:1141342909.081017.169090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Please...this is driving me cray...I cannot finda way to resolve this
problem...

I have a OpenGL application and when I try to build it I got a
unresolved external symbol for each OpenGL function in my unit.....I`ve
already put the includes, the references, the libs (inside Project
Properties - Linker - Input).... please...help me...


To confirm my libs:

Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\opengl32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\glu32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\glaux.lib:

Error Example:

OpenGLGuide.obj : error LNK2019: unresolved external symbol "void
__stdcall glColor3b(signed char,signed char,signed char)"
(?glColor3b@@YGXCCC@Z) referenced in function _main
OpenGLGuide.obj : error LNK2019: unresolved external symbol "void
__stdcall glClearColor(float,float,float,float)"
(?glClearColor@@YGXMMMM@Z) referenced in function _main
Release/OpenGLGuide.exe : fatal error LNK1120: 2 unresolved externals


are you missing

#include <GL/gl.h> *after* #include <windows.h> ?

I don't think the OpenGL api is a "__stdcall" .


-jbw



.



Relevant Pages

  • ndis.lib linking problem.
    ... Searching libraries ... Searching C:\Program Files\Microsoft Visual Studio 8\SmartDevices ... asyncmac.obj: error LNK2019: unresolved external symbol ...
    (microsoft.public.windowsce.embedded.vc)
  • ndis.lib linking problem.
    ... Searching libraries ... Searching C:\Program Files\Microsoft Visual Studio 8\SmartDevices ... asyncmac.obj: error LNK2019: unresolved external symbol ...
    (microsoft.public.windowsce.app.development)
  • Visual Studio 2003 Linker Error
    ... unresolved external symbol for each OpenGL function in my unit.....I`ve ... Searching C:\Program Files\Microsoft Visual Studio .NET ... OpenGLGuide.obj: error LNK2019: unresolved external symbol "void ...
    (comp.graphics.api.opengl)
  • link hell. uafxcwd.lib(afxmem.obj) : error LNK2001:
    ... I have always built my projects as debug builds. ... uafxcwd.lib: error LNK2001: unresolved external symbol ... Searching Libraries ... Done Searching Libraries ...
    (microsoft.public.vc.language)
  • Re: Issue with building PHP 5.2.2 from source on Windows XP
    ... and I am building PHP from source through the Visual Studio Command ... previous defini ... php5ts_debug.dll.def: error LNK2001: unresolved external symbol ...
    (comp.lang.php)

Loading