Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Extended GL Linker Troubles

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Location
    Austria
    Posts
    5

    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?

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    340

    Re: Extended GL Linker Troubles

    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.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •