Extended GL Linker Troubles

When tried to compile the Offscreendemo from frustum.org under Win98 with Visual C++ 6.0, i had to make some minor changes:

  • Some loop-counters were declared twice
  • changed “long long” to “long”
  • dropped jpg stuff (probs with math.h)
  • added #include <windows.h> before every #include <gl.h>
  • added #define GL_GLEXT_PROTOTYPES before every #include <glext.h> - this was necessary (???)

Now all compiles fine, but the linker fails:

--------------------Konfiguration: OffScreenRendering - Win32 Debug-------------------- Linker-Vorgang läuft… main.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glActiveTexture@4 mesh.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glActiveTexture@4 main.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glBindProgramNV@8 utile.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glBindProgramNV@8 main.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glBindProgramARB@8 utile.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glBindProgramARB@8 main.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glProgramNamedParameter4fvNV@16 mesh.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glDisableVertexAttribArrayARB@4 mesh.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glVertexAttribPointerARB@24 mesh.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glEnableVertexAttribArrayARB@4 utile.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glLoadProgramNV@16 utile.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glGenProgramsNV@8 utile.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glProgramStringARB@16 utile.obj : error LNK2001: Nichtaufgeloestes externes Symbol _glGenProgramsARB@8 Debug/OffScreenRendering.exe : fatal error LNK1120: 11 unaufgeloeste externe Verweise Fehler beim Ausführen von link.exe.

OffScreenRendering.exe - 15 Fehler, 0 Warnung(en)

Linked Libs: …glu32.lib opengl32.lib libpng.lib winmm.lib
What’s wrong, can anybody help?

linker complains because it doesn’t find instances of the extensions function pointers. Seems some extension loading file is missing.
(with some PFN**** gl**** = wglGetProcAddress() in it. right now all you have is some extern PFN**** gl**** declarations.)

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.