Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT CREATOR - where do I put the /NODEFAULTLIB:library?
Qt 6.12 LTS is out! See what's new in the release blog

QT CREATOR - where do I put the /NODEFAULTLIB:library?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    QT gives the errors:

    @LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
    LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library@

    where do I put the /NODEFAULTLIB:library ?

    I have also started the question on stackoverflow - "Stackoverflow Question":http://stackoverflow.com/questions/17371402/qt-creator-where-do-i-put-the-nodefaultliblibrary?noredirect=1#comment25214552_17371402

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      This has nothing to do with Qt Creator.

      The options go into your PRO file QMAKE_CXXFLAGS as described in the answers to your cross-posted StackOverflow question. There are some useful links in the answers too.

      Something you are linking your Qt code with was not built with the same /MD or /MT option. Since we have no knowledge of what your project includes we cannot be more specific.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved