Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    2
    2
    3447
    Loading More Posts
    • 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
      rreeves84 last edited by

      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 Reply Quote 0
      • C
        ChrisW67 last edited by

        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 Reply Quote 0
        • First post
          Last post