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. linking error: library conflict

linking error: library conflict

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

    i received this linking error: LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library does anyone knwo hwo to resolve this? thanks in advance

    D 1 Reply Last reply
    0
    • H hearties

      i received this linking error: LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library does anyone knwo hwo to resolve this? thanks in advance

      D Offline
      D Offline
      Dave Carkeet
      wrote on last edited by
      #2

      I find that one thing that can cause this message is the following (Im using VC++ 5.0): When you create you Win32 Appwizard application, you are asked whether you you wish to use MFC as a shared DLL or as a static library. When you create a ".lib" type project you have 3 options... Using MFC in a static library Using MFC in a shared DLL Not using MFC The ".lib" projects which your Win32 application links in should (in normal situations) be using MFC in the same way as your Win32 app. For example, I built a ".lib" which used some MFC calls, and I mistakenly selected "Not using MFC" when I created the project, and it generated exactly the same message as you quote above. Dave Carkeet, Santiago, Chile

      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