error LNK2005 and error LNK2019 and warning LNK4098

I enable the default library as adviced by David.
These are the error I got when  enable the default library:
To make things more clear, I will just add some blank lines between the different errors...
//****************************************************************************
error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)

error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)

warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library

error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup

warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
//**************************************************************************

ANY CLUES???
racinecondeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

racinecondeAuthor Commented:
The following errors are solved it by putting 'LIBCMT.lib' in the option 'Ignore specific library' in the project properties dialox box.
//******* first error solved
error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
//******* 2nd error solved
error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)



Now the errors remaining are:
//************ error one
warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
//************ error two
error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup


Thanks anyway for trying...
racinecondeAuthor Commented:
My mistake. The error remaining is:
//************
error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup

racinecondeAuthor Commented:
This question is now closed. I've fix the problems by adding the following lines in my stdafx.h file

//--------------------------
#define WIN32_LEAN_AND_MEAN            
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
//-----------------------------

Thank for trying

Racine
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.