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 5 of 5

Thread: debug(Release) message

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    5

    debug(Release) message

    for some reason when working in release mode in VC++ 6.0 I get this strange message :
    "LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REF"
    Does anyone knows what causes it , and how to get rid of it ?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    London
    Posts
    503

    Re: debug(Release) message

    This isn't a bug. If you look at the Link tab under Project/Settings menu, you'll see that you have the advapi32.lib import lib linked in by default. (Look at the "object/library modules" list; you'll probably need to scroll along a way.)

    The import lib basically declares functions that are implemented in a DLL. However, the linker has noticed that your program doesn't actually call anything in that DLL, so it leaves out the import declarations to save a bit of space.

    As I said, this isn't a problem, but if it bothers you just remove "advapi32.lib" from the list on the Link tab.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    5

    Re: debug(Release) message

    Thanks !!!

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    5

    Re: debug(Release) message

    It worked . But know I`ve got some new link error messages (errors and not warnings).

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    London
    Posts
    503

    Re: debug(Release) message

    Bit short on details - what link errors?

    This sounds like a general compiler question rather than an OpenGL question, so maybe we should take it off-list. If you want to contact me by email, feel free.

Posting Permissions

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