error LNK2005: _exit already defined in msvcrt.lib(MSVCR90.dll)_LIBCMTD.lib?

Hi i am using libjpeg lib and libpng lib in my application... when i compile my application in debug mode..it is working fine... But when I compile my application in release mode i am getting following link error...

 Error    41  error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in MSVCRT.lib(ti_inst.obj)   F:\Work Projects\SnackCards XAML\SimpleGame\SimpleGame\LIBCMT.lib(typinfo.obj)  SimpleGame

Error 43 error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in MSVCRT.lib(ti_inst.obj) F:\Work Projects\SnackCards

anybody have suggestion about this error?

Answers


You are likely using different C runtimes in the libraries and your application. Check the project settings. Libcmt is the staticically linked multi-threaded run-time, while msvcrt is the dynamically linked version.

Check that the settings match in your project properties under

C/C++->Code Generation->Runtime Library

Need Your Help

Creating custom HTML info windows for markers in using the Google Maps API

google-maps

I'm creating an array of information to populate markers using the Google Maps API.

How to increase the height of NSTableHeaderView?

objective-c osx cocoa nstableview nstableheaderview

I need to implement a headerview with specific size and gradient. I have to insert images in certain cells of the headerview.Tried to create the cells for the headerview using the following code,b...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.