Hi, I have modified an example file to display a bitmap file. However, when I compile it, I get 2 link errors:
Anybody got an idea as how to fix this. Here is my code:Code:S60test error LNK2019: unresolved external symbol "public: __thiscall CFbsBitmap::CFbsBitmap(void)" (??0CFbsBitmap@@QAE@XZ) referenced in function "private: void __thiscall CS60TestAppView::ConstructL(class TRect const &)" (?ConstructL@CS60TestAppView@@AAEXABVTRect@@@Z) S60test error LNK2019: unresolved external symbol "public: int __thiscall CFbsBitmap::Load(class TDesC16 const &,long,int)" (?Load@CFbsBitmap@@QAEHABVTDesC16@@JH@Z) referenced in function "public: virtual void __thiscall CS60TestAppView::Draw(class TRect const &)const " (?Draw@CS60TestAppView@@UBEXABVTRect@@@Z)
Code:#include <coemain.h> #include <eikenv.h> #include <fbs.h>//added #include <gdi.h>//added #include "S60TestAppView.h" #include "S60TestDocument.h" CS60TestAppView *CS60TestAppView::NewL(const TRect& aRect, CS60TestDocument *aDoc) { CS60TestAppView *self=CS60TestAppView::NewLC(aRect, aDoc); CleanupStack::Pop(self); return self; } CS60TestAppView* CS60TestAppView::NewLC(const TRect& aRect, CS60TestDocument *aDoc) { CS60TestAppView *self=new(ELeave) CS60TestAppView(aDoc); CleanupStack::PushL(self); self->ConstructL(aRect); return self; } CS60TestAppView::CS60TestAppView(CS60TestDocument *aDoc) { iDoc=aDoc; } CS60TestAppView::~CS60TestAppView() { } void CS60TestAppView::ConstructL(const TRect& aRect) { iBitmap = new (ELeave) CFbsBitmap(); CreateWindowL(); SetRect(aRect); ActivateL(); } void CS60TestAppView::Draw(const TRect& /*aRect*/) const { CBitmapContext &gc=SystemGc(); TRect rect=Rect(); gc.Clear(rect); /*TBuf<64> napis; _LIT(format, "Drawing area %dx%d"); napis.Format(format, rect.Width(), rect.Height()); gc.UseFont(iCoeEnv->NormalFont()); gc.DrawText(napis, TPoint(5, 50));*/ _LIT(KDrawBitmapPath, "system\\apps\\Step1\\bitmap\\testbmp.mbm"); User::LeaveIfError(iBitmap->Load(KDrawBitmapPath, 0)); gc.DrawBitmap(TPoint(0, 0), iBitmap); }



