PDA

View Full Version : Problem building LICE test


Fergo
12-05-2009, 10:14 PM
Hy everyone!

I'm trying to build the LICE test that comes with WDL but I'm having troubles linking it. Here is the build log:


Linking...
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Cam::End(void)" (?End@pl_Cam@@QAEXXZ) referenced in function "void __cdecl doFlyEffect(class LICE_IBitmap *,struct HWND__ *)" (?doFlyEffect@@YAXPAVLICE_IBitmap@@PAUHWND__@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall pl_Cam::End(void)" (?End@pl_Cam@@QAEXXZ)
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Cam::RenderObject(class pl_Obj *,double *,double *)" (?RenderObject@pl_Cam@@QAEXPAVpl_Obj@@PAN1@Z) referenced in function "void __cdecl doFlyEffect(class LICE_IBitmap *,struct HWND__ *)" (?doFlyEffect@@YAXPAVLICE_IBitmap@@PAUHWND__@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall pl_Cam::RenderObject(class pl_Obj *,double *,double *)" (?RenderObject@pl_Cam@@QAEXPAVpl_Obj@@PAN1@Z)
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Cam::RenderLight(class pl_Light *)" (?RenderLight@pl_Cam@@QAEXPAVpl_Light@@@Z) referenced in function "void __cdecl doFlyEffect(class LICE_IBitmap *,struct HWND__ *)" (?doFlyEffect@@YAXPAVLICE_IBitmap@@PAUHWND__@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall pl_Cam::RenderLight(class pl_Light *)" (?RenderLight@pl_Cam@@QAEXPAVpl_Light@@@Z)
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Cam::Begin(class LICE_IBitmap *,bool,float)" (?Begin@pl_Cam@@QAEXPAVLICE_IBitmap@@_NM@Z) referenced in function "void __cdecl doFlyEffect(class LICE_IBitmap *,struct HWND__ *)" (?doFlyEffect@@YAXPAVLICE_IBitmap@@PAUHWND__@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall pl_Cam::Begin(class LICE_IBitmap *,bool,float)" (?Begin@pl_Cam@@QAEXPAVLICE_IBitmap@@_NM@Z)
fly.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_Clear(class LICE_IBitmap *,unsigned int)" (?LICE_Clear@@YAXPAVLICE_IBitmap@@I@Z) referenced in function "void __cdecl doFlyEffect(class LICE_IBitmap *,struct HWND__ *)" (?doFlyEffect@@YAXPAVLICE_IBitmap@@PAUHWND__@@@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl LICE_Clear(class LICE_IBitmap *,unsigned int)" (?LICE_Clear@@YAXPAVLICE_IBitmap@@I@Z)
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Light::Set(unsigned char,double,double,double,double,double,double,dou ble)" (?Set@pl_Light@@QAEXENNNNNNN@Z) referenced in function "void __cdecl doFlyEffect(class LICE_IBitmap *,struct HWND__ *)" (?doFlyEffect@@YAXPAVLICE_IBitmap@@PAUHWND__@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall pl_Light::Set(unsigned char,double,double,double,double,double,double,dou ble)" (?Set@pl_Light@@QAEXENNNNNNN@Z)
fly.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_TexGen_Marble(class LICE_IBitmap *,struct tagRECT *,float,float,float,float)" (?LICE_TexGen_Marble@@YAXPAVLICE_IBitmap@@PAUtagRE CT@@MMMM@Z) referenced in function "void __cdecl setup_materials(class pl_Mat * *)" (?setup_materials@@YAXPAPAVpl_Mat@@@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl LICE_TexGen_Marble(class LICE_IBitmap *,struct tagRECT *,float,float,float,float)" (?LICE_TexGen_Marble@@YAXPAVLICE_IBitmap@@PAUtagRE CT@@MMMM@Z)
fly.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_TexGen_Noise(class LICE_IBitmap *,struct tagRECT *,float,float,float,float,int,int)" (?LICE_TexGen_Noise@@YAXPAVLICE_IBitmap@@PAUtagREC T@@MMMMHH@Z) referenced in function "void __cdecl setup_materials(class pl_Mat * *)" (?setup_materials@@YAXPAPAVpl_Mat@@@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl LICE_TexGen_Noise(class LICE_IBitmap *,struct tagRECT *,float,float,float,float,int,int)" (?LICE_TexGen_Noise@@YAXPAVLICE_IBitmap@@PAUtagREC T@@MMMMHH@Z)
fly.obj : error LNK2019: unresolved external symbol "class LICE_IBitmap * __cdecl LICE_LoadPCX(char const *,class LICE_IBitmap *)" (?LICE_LoadPCX@@YAPAVLICE_IBitmap@@PBDPAV1@@Z) referenced in function "void __cdecl setup_materials(class pl_Mat * *)" (?setup_materials@@YAXPAPAVpl_Mat@@@Z)
fly.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LICE_MemBitmap::resize(int,int)" (?resize@LICE_MemBitmap@@UAE_NHH@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LICE_MemBitmap::resize(int,int)" (?resize@LICE_MemBitmap@@UAE_NHH@Z)
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Obj::FlipNormals(void)" (?FlipNormals@pl_Obj@@QAEXXZ) referenced in function "class pl_Obj * __cdecl setup_landscape(class pl_Mat *,class pl_Mat *,class pl_Mat *)" (?setup_landscape@@YAPAVpl_Obj@@PAVpl_Mat@@00@Z)
fly.obj : error LNK2019: unresolved external symbol "class pl_Obj * __cdecl plMakeSphere(double,unsigned int,unsigned int,class pl_Mat *)" (?plMakeSphere@@YAPAVpl_Obj@@NIIPAVpl_Mat@@@Z) referenced in function "class pl_Obj * __cdecl setup_landscape(class pl_Mat *,class pl_Mat *,class pl_Mat *)" (?setup_landscape@@YAPAVpl_Obj@@PAVpl_Mat@@00@Z)
fly.obj : error LNK2019: unresolved external symbol "public: void __thiscall pl_Obj::CalculateNormals(void)" (?CalculateNormals@pl_Obj@@QAEXXZ) referenced in function "class pl_Obj * __cdecl setup_landscape(class pl_Mat *,class pl_Mat *,class pl_Mat *)" (?setup_landscape@@YAPAVpl_Obj@@PAVpl_Mat@@00@Z)
fly.obj : error LNK2019: unresolved external symbol "class pl_Obj * __cdecl plMakePlane(double,double,unsigned int,class pl_Mat *)" (?plMakePlane@@YAPAVpl_Obj@@NNIPAVpl_Mat@@@Z) referenced in function "class pl_Obj * __cdecl setup_landscape(class pl_Mat *,class pl_Mat *,class pl_Mat *)" (?setup_landscape@@YAPAVpl_Obj@@PAVpl_Mat@@00@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_Blit(class LICE_IBitmap *,class LICE_IBitmap *,int,int,int,int,int,int,float,int)" (?LICE_Blit@@YAXPAVLICE_IBitmap@@0HHHHHHMH@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "class LICE_IBitmap * __cdecl LICE_LoadSVG(char const *,class LICE_IBitmap *)" (?LICE_LoadSVG@@YAPAVLICE_IBitmap@@PBDPAV1@@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_TransformBlit(class LICE_IBitmap *,class LICE_IBitmap *,int,int,int,int,float *,int,int,float,int)" (?LICE_TransformBlit@@YAXPAVLICE_IBitmap@@0HHHHPAM HHMH@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_Arc(class LICE_IBitmap *,float,float,float,float,float,unsigned int,float,int,bool)" (?LICE_Arc@@YAXPAVLICE_IBitmap@@MMMMMIMH_N@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl LICE_GetPixel(class LICE_IBitmap *,int,int)" (?LICE_GetPixel@@YAIPAVLICE_IBitmap@@HH@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_FLine(class LICE_IBitmap *,float,float,float,float,unsigned int,float,int,bool)" (?LICE_FLine@@YAXPAVLICE_IBitmap@@MMMMIMH_N@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_PutPixel(class LICE_IBitmap *,int,int,unsigned int,float,int)" (?LICE_PutPixel@@YAXPAVLICE_IBitmap@@HHIMH@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_TexGen_CircNoise(class LICE_IBitmap *,struct tagRECT *,float,float,float,float,float,int)" (?LICE_TexGen_CircNoise@@YAXPAVLICE_IBitmap@@PAUta gRECT@@MMMMMH@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall LICE_SysBitmap::~LICE_SysBitmap(void)" (??1LICE_SysBitmap@@UAE@XZ) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl LICE_FillRect(class LICE_IBitmap *,int,int,int,int,unsigned int,float,int)" (?LICE_FillRect@@YAXPAVLICE_IBitmap@@HHHHIMH@Z) referenced in function "void __cdecl DoPaint(struct HWND__ *)" (?DoPaint@@YAXPAUHWND__@@@Z)
[rest of error log removed due to forum's char limitations]


I've already built lice.lib and plush2.lib. What am I doing wrong?

Regards,
Fergo

Fergo
12-05-2009, 11:03 PM
Nevermind. The paths for the custom libs (lice and plush2) weren't set at the project settings.

Really cool example btw.

Fergo

whatsup
12-06-2009, 03:49 PM
Ferjo I have the exact problem,
can you please post a screen shot, where to set those paths ?

Fergo
12-06-2009, 04:46 PM
Sure. Just go to "Project -> test Properties..." and under "Configuration Properties/Linker/General" and "Configuration Properties/Linker/Input" you'll find a place to put the name of the dependencies and the path to look for them.

http://img.photobucket.com/albums/v385/Fergo/alpha891.png

http://img.photobucket.com/albums/v385/Fergo/alpha890.png

Make sure you have the correct build selected (Release/Debug), as VS stores different settings for different types of build.

Fergo

whatsup
12-06-2009, 07:33 PM
thank you very much, this helped.