2010-06-14

error LNK2005: strncmp already defined in LIBCMT.lib(strncmp.obj)

You're trying to mix "Multi-threaded (/MT)" with "Multi-threaded DLL (/MD)". Enough said.

2 comments:

  1. Reason for this error? how can i recover from this error?

    ReplyDelete
  2. The reason is that your application is going to attempt using a statically linked library with a DLL, and end up with calls that are being defined twice.

    You must ensure that your project only ever uses one of /MT or /MD.

    ReplyDelete