Vijay Kumbhani
Vijay Kumbhani

Reputation: 742

Error 22error LNK2005: _realloc already defined in libcmt.lib(realloc.obj) MSVCRT.lib

I am fetch contacts from outlook using MAPI API in MFC.

  1. I used release exe in " Use MFC in shared DLL " but this release exe working in My PC but I used this exe in another PC thats failed login in MAPI API

then i move to second choice

  1. I used release exe in " Use MFC in Static library " but i used release exe that gets following error

    error details

After I set in my project property shown in Image below

settings

then get again same error

Upvotes: 0

Views: 1165

Answers (1)

xMRi
xMRi

Reputation: 15375

Never ignore such linker errors where it seams that 2 different CRT versions (static/DLL or may be Debug) are used.

Fix your object modules so that they only use one CRT version! Ignoring such an error is the wrong way, because different heaps may be used inside your program!

Upvotes: 1

Related Questions