Results 1 to 3 of 3

Thread: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

  1. #1
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

    Howdy,

    I am trying to use the newmat10 c++ matrix library in Qt but I keep getting the following error in qt creator:
    :: warning: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
    I downloaded newmat from here: http://cs.nyu.edu/~sorkine/courses/cg/cg2006/ex1.html and compiled it using VS2010.

    Does anybody have any suggestions?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

    Probably the newmat10 build is not the same as your Qt project. (/MD, /MT, /LD)
    http://msdn.microsoft.com/en-us/libr...8VS.80%29.aspx
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    May 2010
    Posts
    53
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

    Perfect! I recompiled newmat10 with /MD and everything works.

    Thanks

Similar Threads

  1. static building qt, error: declaration of c function conflicts
    By BlueWizard in forum Installation and Deployment
    Replies: 4
    Last Post: 30th July 2010, 13:50
  2. Windows 7 DLL Conflicts
    By EF2008 in forum Qt Tools
    Replies: 4
    Last Post: 5th May 2010, 19:39
  3. Replies: 2
    Last Post: 22nd December 2009, 21:52
  4. Replies: 1
    Last Post: 29th June 2009, 10:49
  5. use libs under qt4
    By raphaelf in forum Qt Programming
    Replies: 6
    Last Post: 27th February 2006, 18:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.