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

Similar Threads

  1. Replies: 4
    Last Post: 04-03-2008, 04:11 PM
  2. debug/release difference in glReadPixels
    By bozalina in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 09-21-2006, 09:03 AM
  3. Tool Box : Not the same on Release and Debug mode, why ?
    By Leyder Dylan in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-04-2003, 06:57 AM
  4. Textures in Debug and Release Versions under VC++ 6.0
    By Solobase in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-16-2002, 12:19 AM
  5. Debug vs. Release Builds
    By ribblem in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-01-2001, 07:19 AM

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