PDA

View Full Version : Unresolved external symbol


Andrew J
08-30-2009, 05:19 PM
All,

I'm looking for a tip on how to resolve the linker error shown below. Am getting this in VS2008 with WDL v2009.07.04. Can still build successfully with WDL v2009.01.18.


Error 1 error LNK2019: unresolved external symbol "class LICE_IBitmap * __cdecl LICE_LoadJPGFromResource(struct HINSTANCE__ *,int,class LICE_IBitmap *)" (?LICE_LoadJPGFromResource@@YAPAVLICE_IBitmap@@PAU HINSTANCE__@@HPAV1@@Z) referenced in function "protected: virtual class LICE_IBitmap * __thiscall IGraphicsWin::OSLoadBitmap(int,char const *)" (?OSLoadBitmap@IGraphicsWin@@MAEPAVLICE_IBitmap@@H PBD@Z) IPlug.lib IPlugExample

Error 2 fatal error LNK1120: 1 unresolved externals Debug/IPlugExample_DEBUG.dll IPlugExample


-Andrew

schwa
08-30-2009, 06:16 PM
lice_jpg.cpp may need to be added to your LICE library build.

Andrew J
08-30-2009, 09:12 PM
Thanks schwa, that got me headed in the right direction. I also had to add jpeglib into the lice library build (under Source Files). Is this something you'll fix in the .vcproj in the next wdl dist?

Am now trying to sort a different problem on another PC where the linker is complaining that there are a bunch of things already defined in MSVCRT.lib (MSCVCR100.dll & cinitexe.obj). Erk!

Andrew J
08-30-2009, 09:17 PM
...and just sorted my other problem. At some stage I had set /MD instead of /MT. All works fine now that I'm back at /MT - phew!