本文介绍了扩展DLL链接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友我是一个更新鲜尝试学习MFC VC ++ ..我正在尝试构建和使用其他DLL函数的DLL。我已在属性和包含路径中指定了lib路径。但我仍然得到这些链接错误'。





错误1515错误LNK2019:未解析的外部符号_png_info_init在函数public中引用:????虚拟INT __thiscall CImagePNG :: ReadFile的(类ATL :: CStringT<炭,类>>>常量&)(ReadFile的@ CImagePNG @@ UAEHABV $ CStringT @ DV $ StrTraitMFC_DLL @ DV $ ChTraitsCRT @ d @ATL @@@@@ ATL @@@ Z)I:\cpoy2 ProjectVS2010\ProjectVS2010\DLLWorkspaces\WidgetControls\WidgetControls\Image.lib(Imapng.obj)








错误1514的错误LNK2019:解析外部符号函数_png_read_init引用公共:虚拟INT __thiscall CImagePNG :: ReadFile的(类ATL :: CStringT<炭,类>>>常量&)????(ReadFile的@ CImagePNG @@ UAEHABV $ CStringT @ DV $ StrTraitMFC_DLL @ DV $ ChTraitsCRT @ d @ ATL @@@ @@ ATL @@@ Z)I:\cpoy2 ProjectVS2010 \ ProjectVS2010 \DLLWorkspaces \WidgetControls \WidgetControls \ Image.lib(Imapng.o bj)









错误1516错误LNK2019:未解析的外部符号_png_write_init在函数public:virtual int __thiscall CImagePNG :: SaveFile中引用(类ATL :: CStringT< char,class> > >常量和,INT)(SAVEFILE @ CImagePNG @@ UAEHABV $ @ CStringT DV $ @ StrTraitMFC_DLL DV $ @ ChTraitsCRT @ d ATL @@@@@ ATL @@ H + Z)I:????\cpoy2 ProjectVS2010\\ \\ProjectVS2010\DLLWorkspaces\WidgetControls\WidgetControls\Image.lib(Imapng.obj)

解决方案



Hello friends i a fresher trying to learn MFC VC++ .. I am trying to Build and dll which uses function from other dll. I have specified the lib path in properties and Include path too. but i am still getting these linking error''s.


Error1515error LNK2019: unresolved external symbol _png_info_init referenced in function "public: virtual int __thiscall CImagePNG::ReadFile(class ATL::CStringT<char,class> > > const &)" (?ReadFile@CImagePNG@@UAEHABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)I:\cpoy2 ProjectVS2010\ProjectVS2010\DLLWorkspaces\WidgetControls\WidgetControls\Image.lib(Imapng.obj)




Error1514error LNK2019: unresolved external symbol _png_read_init referenced in function "public: virtual int __thiscall CImagePNG::ReadFile(class ATL::CStringT<char,class> > > const &)" (?ReadFile@CImagePNG@@UAEHABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)I:\cpoy2 ProjectVS2010\ProjectVS2010\DLLWorkspaces\WidgetControls\WidgetControls\Image.lib(Imapng.obj)




Error1516error LNK2019: unresolved external symbol _png_write_init referenced in function "public: virtual int __thiscall CImagePNG::SaveFile(class ATL::CStringT<char,class> > > const &,int)" (?SaveFile@CImagePNG@@UAEHABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@H@Z)I:\cpoy2 ProjectVS2010\ProjectVS2010\DLLWorkspaces\WidgetControls\WidgetControls\Image.lib(Imapng.obj)

解决方案




这篇关于扩展DLL链接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 07:23