I am using VS2003 and have to link an application with a library called "Services.lib" created in VCS2005.
Whenever I link with Services.lib whether it's Debug or Release,
linker will fail.
If I build Debug version and include Debug version of Services.lib,
there were a lot of CRT unresolved external symbol to Services.lib and also the other libs I linked in the Linker's Additional Dependencies.
When I build Release version and include Release version of Services.lib,
I got this error :
fatal error LNK1262: link failed due to mismatched versions of 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\c2.dll' and LINK.EXE

If I remove any reference to this lib, the application could be built and worked fine.
Unfortunately I need the functions in that lib.

Is there any workaround to this problem


Re: Visual C++ General Problem linking to library created by VS2005 in VC2003

My Site

It is always suggested to have one version of CRT.

We are expecting forward compatability, which is not possible.

You can expect backward compatability.

Please look into this article for the problems mixing different CRT's