Posts

Showing posts with the label error LNK2001: unresolved external symbol Visual Studio 2010

error LNK2001: unresolved external symbol and error LNK1120: 1 unresolved externals

if you get errors while linking compiled code and making project output file (such as .exe,.dll) in MVC++ with subject of "error LNK2001: unresolved external symbol and error LNK1120: 1 unresolved externals",It seems there is missing library definition in addition if the message is related with "DEFINE_GUID" ,There is unordered including headers. Please check belows; 1-Check all headers that may use,are included 2-Check directories of referenced files are set in project (Right Click to Project in Micosoft Visual Studio 2010>Properties>Configuration Properties>VC++Directories and 3- check Libraries dependencies (Right Click to Project in Micosoft Visual Studio 2010>Properties>Configuration Properties>Linker>Input>Additional Dependencies) 4-Please follow the exact code and if it is about "DEFINE_GUID", initialize GUID (#include ) before include any project based headers. ( http://support.microsoft.com/kb/130869/en-us ) obtains d