error LNK2019: unresolved external symbol

When i compile my code on visual studio using platform x64 i get the following output :
which shows successful.
But when i change the platform to win32 it gives me the following errors :
2>Processing .\CoraidVssProvider.idl
2>CoraidVssProvider.idl
1>stdafx.cpp
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\oaidl.idl
2>oaidl.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\objidl.idl
2>objidl.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\unknwn.idl
2>unknwn.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\wtypes.idl
2>wtypes.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\basetsd.h
2>basetsd.h
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\guiddef.h
2>guiddef.h
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\ocidl.idl
2>ocidl.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\oleidl.idl
2>oleidl.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\servprov.idl
2>servprov.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\urlmon.idl
2>urlmon.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\msxml.idl
2>msxml.idl
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\oaidl.acf
2>oaidl.acf
2>Processing C:\Program Files\Microsoft SDKs\Windows\v7.1\\include\ocidl.acf
2>ocidl.acf
1>CoraidRESTInterface.cpp
1>.\CoraidRESTInterface.cpp(2) : warning C4627: '#include "CoraidRESTInterface.h"': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\CoraidRESTInterface.cpp(4) : warning C4627: '#include <msclr/marshal.h>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\CoraidRESTInterface.cpp(7) : warning C4627: '#include <strsafe.h>': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\CoraidRESTInterface.cpp(8) : warning C4627: '#include "Winhttp.h"': skipped when looking for precompiled header use
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\CoraidRESTInterface.cpp(1115) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Caching metadata information for c:\windows\assembly\gac_msil\system.web.extensions\3.5.0.0__31bf3856ad364e35\system.web.extensions.dll...
1>Build log was saved at "file://d:\Coraid Clone\CoraidVSSHwProvider\CoraidRESTInterface\Debug\BuildLog.htm"
1>CoraidRESTInterface - 1 error(s), 4 warning(s)
2>Compiling...
2>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
2>CoraidVssProvider_i.c
2>Compiling...
2>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
2>CoraidProvider.cpp
2>d:\coraid clone\coraidvsshwprovider\coraidprovider.cpp(926) : warning C4101: 'returnedLength' : unreferenced local variable
2>d:\coraid clone\coraidvsshwprovider\coraidprovider.cpp(927) : warning C4101: 'hDiskDevice' : unreferenced local variable
2>d:\coraid clone\coraidvsshwprovider\coraidprovider.cpp(925) : warning C4101: 'bOutputBuffer' : unreferenced local variable
2>CoraidVssProvider.cpp
2>Utility.cpp
2>d:\coraid clone\coraidvsshwprovider\utility.cpp(109) : warning C4101: 'rs' : unreferenced local variable
2>Generating Code...
2> Creating library Debug/CoraidVssProvider.lib and object Debug/CoraidVssProvider.exp
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::MkLun(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?MkLun@CoraidRESTInterface@@QAEIIAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "public: virtual long __stdcall CoraidProvider::GetTargetLuns(long,unsigned short * *,struct _VDS_LUN_INFORMATION *,struct _VDS_LUN_INFORMATION *)"
CoraidProvider::GetTargetLuns(long,unsigned short * *,struct _VDS_LUN_INFORMATION *,struct _VDS_LUN_INFORMATION *)" (?GetTargetLuns@CoraidProvider@@UAGJJPAPAGPAU_VDS_LUN_INFORMATION@@1@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: __thiscall CoraidRESTInterface::CoraidRESTInterface(void)" (??0CoraidRESTInterface@@QAE@XZ) referenced in function "public: virtual long __stdcall CoraidProvider::GetTargetLuns(long,unsigned short * *,struct _VDS_LUN_INFORMATION *,struct _VDS_LUN_INFORMATION *)" (?GetTargetLuns@CoraidProvider@@UAGJJPAPAGPAU_VDS_LUN_INFORMATION@@1@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::OnlineLUN(unsigned int,unsigned int)" (?OnlineLUN@CoraidRESTInterface@@QAEIII@Z) referenced in function "public: virtual long __stdcall CoraidProvider::LocateLuns(long,struct _VDS_LUN_INFORMATION *)" (?LocateLuns@CoraidProvider@@UAGJJPAU_VDS_LUN_INFORMATION@@@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::GetLVfromSrnum(unsigned int,char *,struct CoraidLV &)" (?GetLVfromSrnum@CoraidRESTInterface@@QAEIIPADAAUCoraidLV@@@Z) referenced in function "public: virtual long __stdcall CoraidProvider::LocateLuns(long,struct _VDS_LUN_INFORMATION *)" (?LocateLuns@CoraidProvider@@UAGJJPAU_VDS_LUN_INFORMATION@@@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::RmLv(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?RmLv@CoraidRESTInterface@@QAEIIAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: virtual long __stdcall CoraidProvider::OnLunEmpty(unsigned short *,struct _VDS_LUN_INFORMATION *)" (?OnLunEmpty@CoraidProvider@@UAGJPAGPAU_VDS_LUN_INFORMATION@@@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::RmLun(unsigned int,unsigned int)" (?RmLun@CoraidRESTInterface@@QAEIII@Z) referenced in function "public: virtual long __stdcall CoraidProvider::OnLunEmpty(unsigned short *,struct _VDS_LUN_INFORMATION *)" (?OnLunEmpty@CoraidProvider@@UAGJPAGPAU_VDS_LUN_INFORMATION@@@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::OfflineLUN(unsigned int,unsigned int)" (?OfflineLUN@CoraidRESTInterface@@QAEIII@Z) referenced in function "public: virtual long __stdcall CoraidProvider::OnLunEmpty(unsigned short *,struct _VDS_LUN_INFORMATION *)" (?OnLunEmpty@CoraidProvider@@UAGJPAGPAU_VDS_LUN_INFORMATION@@@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::Clone(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?Clone@CoraidRESTInterface@@QAEIAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z) referenced in function "public: virtual long __stdcall CoraidProvider::CommitSnapshots(struct _GUID)" (?CommitSnapshots@CoraidProvider@@UAGJU_GUID@@@Z)
2>CoraidProvider.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall CoraidRESTInterface::ReadWrite(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?ReadWrite@CoraidRESTInterface@@QAEIIAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: virtual long __stdcall CoraidProvider::OnLunStateChange(struct _VDS_LUN_INFORMATION *,struct _VDS_LUN_INFORMATION *,unsigned long,unsigned long)" (?OnLunStateChange@CoraidProvider@@UAGJPAU_VDS_LUN_INFORMATION@@0KK@Z)
2>Debug/CoraidVssProvider.dll : fatal error LNK1120: 10 unresolved externals
2>CoraidVssProvider - 11 error(s), 9 warning(s)
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========
Make sure that the entire code is newly build (like deleting all *.obj files)
Topic archived. No new replies allowed.