help! vs 2005 runtime lib

when i compile my code , i got the followings:

LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library

then , I use debug to debug my code and got the following:

An application has made an attempt t o load C runtime library incorrectly!



Answer this question

help! vs 2005 runtime lib

  • BAZMIC

    Take a look at http://msdn2.microsoft.com/en-us/library/ms235299.aspx to diagnose the issue.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Buck Hodges

    i have a question:

    does the vs 2005 include the c runtime libraries i can not find libc.lib and some related files in the vs 2005.

    actually, when i compile the code that is from another guy who did it in windows 2000 with vc6.0, the error is "can not open "libc.lib " and then i change the config. such that ignore "libc.lib ". Then I got the above warning :

    LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
    Embedding manifest...
    LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library

    then, I use debug to debug my code and got the following:

    An application has made an attempt t o load C runtime library incorrectly!


  • BrunoR2

    Ayman Shoukry - MSFT wrote:

    libc.lib is gone away. Take a look at similar posts in the past for more info: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=75362&SiteID=1

    Thanks,
    Ayman Shoukry
    VC++ Team

    I am the beginner of vs 2005, so could u tell me how to solve this problem

    Many thanks


  • Dick Roose

    libc.lib is gone away. Take a look at similar posts in the past for more info: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=75362&SiteID=1

    Thanks,
    Ayman Shoukry
    VC++ Team


  • help! vs 2005 runtime lib