Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLNK2001 and LNK2019 errors Pin
Krzysiaczek9927-Mar-10 15:17
Krzysiaczek9927-Mar-10 15:17 
AnswerRe: LNK2001 and LNK2019 errors Pin
Adam Roderick J27-Mar-10 17:43
Adam Roderick J27-Mar-10 17:43 
AnswerRe: LNK2001 and LNK2019 errors Pin
Tim Craig27-Mar-10 17:51
Tim Craig27-Mar-10 17:51 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9927-Mar-10 21:44
Krzysiaczek9927-Mar-10 21:44 
AnswerRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 1:38
mveRichard MacCutchan28-Mar-10 1:38 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 3:32
Krzysiaczek9928-Mar-10 3:32 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 4:33
mveRichard MacCutchan28-Mar-10 4:33 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 4:49
Krzysiaczek9928-Mar-10 4:49 
i did now and got this.

1>Linking...
1>BackPropagation.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcpmtd.lib(newaop.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: __wassert already defined in libcmtd.lib(wassert.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _free already defined in libcmtd.lib(dbgfree.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _calloc already defined in libcmtd.lib(dbgcalloc.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: __recalloc already defined in libcmtd.lib(dbgheap.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: __CrtDbgReportW already defined in libcmtd.lib(dbgrptw.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _clock already defined in libcmtd.lib(clock.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _atoi already defined in libcmtd.lib(atox.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _atol already defined in libcmtd.lib(atox.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _memcpy_s already defined in libcmtd.lib(memcpy_s.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _isspace already defined in libcmtd.lib(_ctype.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _strchr already defined in libcmtd.lib(strchr.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: __invalid_parameter already defined in libcmtd.lib(invarg.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in libcmtd.lib(stdexcpt.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) already defined in libcmtd.lib(stdexcpt.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) already defined in libcmtd.lib(stdexcpt.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _exit already defined in libcmtd.lib(crt0dat.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _printf already defined in libcmtd.lib(printf.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) already defined in libcmtd.lib(stdexcpt.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z) already defined in libcmtd.lib(stdexcpt.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _realloc already defined in libcmtd.lib(dbgrealloc.obj)
1>msvcrtd.lib(MSVCR90D.dll) : error LNK2005: _memmove_s already defined in libcmtd.lib(memmove_s.obj)
1>msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
1>msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::locale::~locale(void)" (??1locale@std@@QAE@XZ) already defined in libcpmtd.lib(locale0.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z) already defined in libcpmtd.lib(stdthrow.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmtd.lib(xlock.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (?_Orphan_all@_Container_base_secure@std@@QBEXXZ) already defined in libcpmtd.lib(locale0.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in libcpmtd.lib(string.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in libcpmtd.lib(string.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in libcpmtd.lib(string.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in libcpmtd.lib(locale0.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::locale::facet::_Incref(void)" (?_Incref@facet@locale@std@@QAEXXZ) already defined in libcpmtd.lib(locale0.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (??1_Container_base_secure@std@@QAE@XZ) already defined in libcpmtd.lib(locale0.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (??0_Container_base_secure@std@@QAE@XZ) already defined in libcpmtd.lib(locale0.obj)
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'mfc90ud.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'mfcs90ud.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl FireLayer__entry(float *,float *,float *,int,int,float *)" (?FireLayer__entry@@YAXPAM00HH0@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::Fire(int)" (?Fire@DeviceLayer@CudaMultipleBackPropagation@@QAEXH@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl KernelFireLayer(int,struct dim3 &,int,float *,float *,float *,int,int,float *,int)" (?KernelFireLayer@@YAXHAAUdim3@@HPAM11HH1H@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::Fire(int)" (?Fire@DeviceLayer@CudaMultipleBackPropagation@@QAEXH@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl FireOutputLayer__entry(float *,float *,float *,int,int,float *,float *,float *,float *,float *)" (?FireOutputLayer__entry@@YAXPAM00HH00000@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::Fire(int)" (?Fire@DeviceLayer@CudaMultipleBackPropagation@@QAEXH@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaConfigureCall@32 referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::Fire(int)" (?Fire@DeviceLayer@CudaMultipleBackPropagation@@QAEXH@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl KernelFireOutputLayer(int,struct dim3 &,int,float *,float *,float *,int,int,float *,float *,float *,float *,float *,int)" (?KernelFireOutputLayer@@YAXHAAUdim3@@HPAM11HH11111H@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::Fire(int)" (?Fire@DeviceLayer@CudaMultipleBackPropagation@@QAEXH@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl CalculateLocalGradient__entry(float *,float *,float,float *,float *,float *,int,int,float *,float *,float *)" (?CalculateLocalGradient__entry@@YAXPAM0M000HH000@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::CalculateLocalGradient(int,float *,float *,float,class CudaMultipleBackPropagation::DeviceLayer *)" (?CalculateLocalGradient@DeviceLayer@CudaMultipleBackPropagation@@QAEXHPAM0MPAV12@@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl KernelCorrectLayerWeights(int,struct dim3 &,int,float *,float *,float,float *,float *,float *,float *,float *,float *,float,float,float,float,int)" (?KernelCorrectLayerWeights@@YAXHAAUdim3@@HPAM1M111111MMMMH@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::DeviceLayer::CorrectWeights(int,int,float *,float *,float,float,float)" (?CorrectWeights@DeviceLayer@CudaMultipleBackPropagation@@QAEXHHPAM0MMM@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaStreamCreate@4 referenced in function "public: __thiscall CudaMultipleBackPropagation::CudaMultipleBackPropagation(class Pointer<class MultipleBackPropagation> &,class Matrix<double> &,class Matrix<double> &)" (??0CudaMultipleBackPropagation@@QAE@AAV?$Pointer@VMultipleBackPropagation@@@@AAV?$Matrix@N@@1@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaMallocHost@8 referenced in function "public: __thiscall CudaMultipleBackPropagation::CudaMultipleBackPropagation(class Pointer<class MultipleBackPropagation> &,class Matrix<double> &,class Matrix<double> &)" (??0CudaMultipleBackPropagation@@QAE@AAV?$Pointer@VMultipleBackPropagation@@@@AAV?$Matrix@N@@1@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaFreeHost@4 referenced in function "public: __thiscall CudaMultipleBackPropagation::~CudaMultipleBackPropagation(void)" (??1CudaMultipleBackPropagation@@QAE@XZ)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaStreamDestroy@4 referenced in function "public: __thiscall CudaMultipleBackPropagation::~CudaMultipleBackPropagation(void)" (??1CudaMultipleBackPropagation@@QAE@XZ)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl RobustLearning__entry(float *,float *,float,int,int *,float * *,float * *,float * *,float,float * *,float * *)" (?RobustLearning__entry@@YAXPAM0MHPAHPAPAM22M22@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::Train(double,double,bool,double,double)" (?Train@CudaMultipleBackPropagation@@QAEXNN_NNN@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaMemcpyAsync@20 referenced in function "public: void __thiscall CudaMultipleBackPropagation::Train(double,double,bool,double,double)" (?Train@CudaMultipleBackPropagation@@QAEXNN_NNN@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaStreamQuery@4 referenced in function "public: void __thiscall CudaMultipleBackPropagation::Train(double,double,bool,double,double)" (?Train@CudaMultipleBackPropagation@@QAEXNN_NNN@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol "void __cdecl KernelCalculateRMS(int,int,float *,float *,int,float)" (?KernelCalculateRMS@@YAXHHPAM0HM@Z) referenced in function "public: void __thiscall CudaMultipleBackPropagation::Train(double,double,bool,double,double)" (?Train@CudaMultipleBackPropagation@@QAEXNN_NNN@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol ___cudaRegisterFatBinary@4 referenced in function ___sti____cudaRegisterAll_62_tmpxft_00001c24_00000000_6_CudaMultipleBackPropagation_cpp1_ii_a1e02e89
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol ___cudaUnregisterFatBinary@4 referenced in function ___cudaUnregisterBinaryUtil
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaMemcpy@16 referenced in function "public: __thiscall DeviceArray<float>::DeviceArray<float>(class HostArray<float> &)" (??0?$DeviceArray@M@@QAE@AAV?$HostArray@M@@@Z)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaFree@4 referenced in function "public: __thiscall DeviceArray<float>::~DeviceArray<float>(void)" (??1?$DeviceArray@M@@QAE@XZ)
1>CudaMultipleBackPropagation.obj : error LNK2019: unresolved external symbol _cudaMalloc@8 referenced in function "private: void __thiscall DeviceArray<float>::Alloc(int)" (?Alloc@?$DeviceArray@M@@AAEXH@Z)
1>MBackPropDlg.obj : error LNK2019: unresolved external symbol "public: __thiscall Cuda::Cuda(void)" (??0Cuda@@QAE@XZ) referenced in function "public: __thiscall CMBackPropDlg::CMBackPropDlg(void)" (??0CMBackPropDlg@@QAE@XZ)
1>C:\Documents and Settings\Administrator\MBP_clone\MBackProp\Debug\MBackProp.exe : fatal error LNK1120: 21 unresolved externals
1>Caching metadata information for c:\program files\microsoft visual studio 9.0\vc\atlmfc\lib\mfcmifc80.dll...
1>Caching metadata information for c:\documents and settings\administrator\mbp_clone\mbpgrid\bin\debug\mbpgrid.dll...
1>Build log was saved at "file://c:\Documents and Settings\Administrator\MBP_clone\MBackProp\Debug\BuildLog.htm"
1>MBackProp - 58 error(s), 5 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========Cool | :cool:
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 4:53
mveRichard MacCutchan28-Mar-10 4:53 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 5:29
Krzysiaczek9928-Mar-10 5:29 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 5:59
mveRichard MacCutchan28-Mar-10 5:59 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 8:07
Krzysiaczek9928-Mar-10 8:07 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 11:34
mveRichard MacCutchan28-Mar-10 11:34 
GeneralRe: LNK2001 and LNK2019 errors [modified] Pin
Krzysiaczek9928-Mar-10 13:16
Krzysiaczek9928-Mar-10 13:16 
GeneralRe: LNK2001 and LNK2019 errors Pin
Richard MacCutchan28-Mar-10 23:03
mveRichard MacCutchan28-Mar-10 23:03 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 23:36
Krzysiaczek9928-Mar-10 23:36 
AnswerRe: LNK2001 and LNK2019 errors Pin
T210228-Mar-10 22:03
T210228-Mar-10 22:03 
GeneralRe: LNK2001 and LNK2019 errors Pin
Krzysiaczek9928-Mar-10 23:24
Krzysiaczek9928-Mar-10 23:24 
QuestionVB6 Project to VC6 Pin
MikeRWinter27-Mar-10 12:06
MikeRWinter27-Mar-10 12:06 
AnswerRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 13:07
professionalRichard Andrew x6427-Mar-10 13:07 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 13:49
MikeRWinter27-Mar-10 13:49 
GeneralRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 13:53
professionalRichard Andrew x6427-Mar-10 13:53 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 14:02
MikeRWinter27-Mar-10 14:02 
GeneralRe: VB6 Project to VC6 Pin
MikeRWinter27-Mar-10 15:41
MikeRWinter27-Mar-10 15:41 
GeneralRe: VB6 Project to VC6 Pin
Richard Andrew x6427-Mar-10 16:23
professionalRichard Andrew x6427-Mar-10 16:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.