Results 1 to 3 of 3

Thread: LINKER ERROR

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2003
    Location
    Bielsko-Biala,Poland
    Posts
    12

    LINKER ERROR

    I've included glaux.lib to my project.
    I've done the following steps:
    1.generate the glaux.lib using the run command.
    implib.exe glaux.lib glaux.dll
    2.the glaux.lib file I moved to folder /Lib
    3.in my project I added the line: #include <GL\glaux.h> and also
    #pragma comment (lib,"glaux.lib")
    And if I try to compile any project the linker error appears, something like this:
    [Linker Error] Unresolved external'auxDisplayMode'referenced from ...\file.obj
    The same project works well at school.
    You know I don't have a clue what's the hell's goin' on !!!
    btw. I use Borland C++ Builder 6(like at school)
    I also tried to use the glut library in my project and the linker alse appear (unresolved external'glut...')
    I think the problem is because my Borland C++ is not installed in a default directory(whats more it is installed in another phisical disc)
    Maybe there are some options which I have to set int Borland ???

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: LINKER ERROR

    Maybe your compiler doesn't allow adding libraries through pragma directives. Add glaux.lib in the project settings instead.

  3. #3
    Member Contributor
    Join Date
    Jun 2001
    Posts
    74

    Re: LINKER ERROR

    this might work:

    take the ".lib" off from the "glaux.lib" in the #pragma

    i.e.

    #pragma comment(lib, "glaux")

    because you tell it it's a lib, it knows the extension - it would have been looking for
    "glaux.lib.lib"

    Not sure but try it.

    Allan

Similar Threads

  1. Linker error
    By Zhugie in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-18-2007, 12:29 PM
  2. Linker error
    By Loffen in forum OpenGL: Windows
    Replies: 1
    Last Post: 08-19-2005, 04:53 AM
  3. Linker Error
    By Suf in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-16-2002, 08:43 AM
  4. linker error need help!!!!!!!!!!!!!!!!!!!!!!!
    By incus in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-17-2002, 10:31 PM
  5. Linker error
    By JodoKaast in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-25-2002, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean