Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I get rid of linker warning: "LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF" ???

How can I get rid of linker warning: "LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF" ???

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++visual-studiocom
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rbid
    wrote on last edited by
    #1

    Hello, When I build the Release configuration of my MFC application I get the following linker warning:

    LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF

    How can I get rid of this linker warning? (without the use of /IGNORE:4089) Hiding the warning via /IGNORE:4089 in the project settings is not the solution I'm looking for. My guess is that the problem comes from the 7.1 MFC libraries I use... is this true? I'm compiling with Visual Studio 2003 (7.1) Thanks in advance.

    -- **Ricky Marek** (_AKA: rbid_) -- "Things are only impossible until they are not" --- Jean-Luc Picard My articles

    T 1 Reply Last reply
    0
    • R rbid

      Hello, When I build the Release configuration of my MFC application I get the following linker warning:

      LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF

      How can I get rid of this linker warning? (without the use of /IGNORE:4089) Hiding the warning via /IGNORE:4089 in the project settings is not the solution I'm looking for. My guess is that the problem comes from the 7.1 MFC libraries I use... is this true? I'm compiling with Visual Studio 2003 (7.1) Thanks in advance.

      -- **Ricky Marek** (_AKA: rbid_) -- "Things are only impossible until they are not" --- Jean-Luc Picard My articles

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      #pragma comment(ignore: 4089)

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      R 1 Reply Last reply
      0
      • T toxcct

        #pragma comment(ignore: 4089)

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        R Offline
        R Offline
        rbid
        wrote on last edited by
        #3

        Question:

        Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?

        For what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings, which is not the solution I'm looking for. Does anybody has another suggestion? Thanks in advance

        -- **Ricky Marek** (_AKA: rbid_) -- "Things are only impossible until they are not" --- Jean-Luc Picard My articles

        T 1 Reply Last reply
        0
        • R rbid

          Question:

          Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?

          For what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings, which is not the solution I'm looking for. Does anybody has another suggestion? Thanks in advance

          -- **Ricky Marek** (_AKA: rbid_) -- "Things are only impossible until they are not" --- Jean-Luc Picard My articles

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          rbid wrote:

          Question: Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?

          no.

          rbid wrote:

          or what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings

          exactly.

          rbid wrote:

          Does anybody has another suggestion?

          there's no other way. either you hide every 4089 warnings, or you show them all. but hey, it's only a warning, why do you bother that much ?

          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups