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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Lib. conflicts. Link Warnings! .. please advise

Lib. conflicts. Link Warnings! .. please advise

Scheduled Pinned Locked Moved C / C++ / MFC
announcement
2 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.
  • A Offline
    A Offline
    a3gupta
    wrote on last edited by
    #1

    Hello, I am getting two linker warnings when I compile my dialog based program written in VStudio 6.0. I am using DAO connectivity in my program. The warnings that I am getting are -- LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF In my project settings under Link Tab, I have following information -- kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ddao35.lib ddao35D.lib ddao35U.lib ddao35UD.lib /nologo /subsystem:windows /incremental:no /pdb:"Release/TDMS2000.pdb" /machine:I386 /out:"Release/TDMS2000.exe" Please advise how and if I need to change my project settings. Thanks ! Anjum.

    C 1 Reply Last reply
    0
    • A a3gupta

      Hello, I am getting two linker warnings when I compile my dialog based program written in VStudio 6.0. I am using DAO connectivity in my program. The warnings that I am getting are -- LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF In my project settings under Link Tab, I have following information -- kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ddao35.lib ddao35D.lib ddao35U.lib ddao35UD.lib /nologo /subsystem:windows /incremental:no /pdb:"Release/TDMS2000.pdb" /machine:I386 /out:"Release/TDMS2000.exe" Please advise how and if I need to change my project settings. Thanks ! Anjum.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      aren't ddao35.lib and ddao35D.lib the release and debug versions of the same lib? you should only link to one of them, depending on the debug/release configuration of your project. -c


      To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
         /. #3848917

      Fractals!

      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