Tom's Hardware > Forum > Smartphones & PDAs > Multimedia > Library Link error.

Library Link error.

Forum Smartphones & PDAs : Multimedia - Library Link error.

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

 

Hi All,

i am developing a image viewer application which draws a JPG file on the HP
IPAQ (CE WM 2003).. I am using some libraries providing the compression and
a DIBSection Wrapper class by Chris Munder ... but the following link error
is coming. I am struck at this point please help me.

I do have header file included in the application and the header has the
declaration of the functions the compiler says unresolved.

public:
CDIBSectionLite(void);
virtual ~CDIBSectionLite();
void DeleteObject();

BOOL LoadJPG(LPCTSTR lpszFileName);

// Operations (Display)
public:
BOOL Draw(CDC* pDC, CPoint ptDest, BOOL bForceBackground = FALSE);
BOOL Stretch(CDC* pDC, CPoint ptDest, CSize size, BOOL bForceBackground
= FALSE);

Please help on solving this problem

PocketPCTestView.cpp
Linking...
Creating library ARMDbg/PocketPCTest.lib and object
ARMDbg/PocketPCTest.exp
PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
int __cdecl CDIBSectionLite::LoadJPG(unsigned short const *)"
(?oadJPG@CDIBSectionLite@@QAAHPBG@Z) referenced in function "protected:
__cdecl CPocketPCTestView::CPocketPCTest
View(void)" (??0CPocketPCTestView@@IAA@XZ)
PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
__cdecl CDIBSectionLite::CDIBSectionLite(void)" (??0CDIBSectionLite@@QAA@XZ)
referenced in function "protected: __cdecl
CPocketPCTestView::CPocketPCTestView(void)" (??0CPocket
PCTestView@@IAA@XZ)
PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
virtual __cdecl CDIBSectionLite::~CDIBSectionLite(void)"
(??1CDIBSectionLite@@UAA@XZ) referenced in function "public: virtual __cdecl
CPocketPCTestView::~CPocketPCTestView(voi
d)" (??1CPocketPCTestView@@UAA@XZ)
PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
int __cdecl CDIBSectionLite::Draw(class CDC *,class CPoint,int)"
(?Draw@CDIBSectionLite@@QAAHPAVCDC@@VCPoint@@H@Z) referenced in function
"public: virtual void __cdecl CPocket
PCTestView::OnDraw(class CDC *)" (?OnDraw@CPocketPCTestView@@UAAXPAVCDC@@@Z)
ARMDbg/PocketPCTest.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Creating browse info file...

PocketPCTest.exe - 5 error(s), 0 warning(s)

regards
Dhananjaya

Sponsored Links
Register or log in to remove.
- 0 +

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

 

That's not the compiler giving the error, it's the linker. It needs to
reference the lib file for the library you are calling - you need to
reference it in your project.

"Dhananjaya R" wrote:

> Hi All,
>
> i am developing a image viewer application which draws a JPG file on the HP
> IPAQ (CE WM 2003).. I am using some libraries providing the compression and
> a DIBSection Wrapper class by Chris Munder ... but the following link error
> is coming. I am struck at this point please help me.
>
> I do have header file included in the application and the header has the
> declaration of the functions the compiler says unresolved.
>
> public:
> CDIBSectionLite(void);
> virtual ~CDIBSectionLite();
> void DeleteObject();
>
> BOOL LoadJPG(LPCTSTR lpszFileName);
>
> // Operations (Display)
> public:
> BOOL Draw(CDC* pDC, CPoint ptDest, BOOL bForceBackground = FALSE);
> BOOL Stretch(CDC* pDC, CPoint ptDest, CSize size, BOOL bForceBackground
> = FALSE);
>
> Please help on solving this problem
>
> PocketPCTestView.cpp
> Linking...
> Creating library ARMDbg/PocketPCTest.lib and object
> ARMDbg/PocketPCTest.exp
> PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
> int __cdecl CDIBSectionLite::LoadJPG(unsigned short const *)"
> (?oadJPG@CDIBSectionLite@@QAAHPBG@Z) referenced in function "protected:
> __cdecl CPocketPCTestView::CPocketPCTest
> View(void)" (??0CPocketPCTestView@@IAA@XZ)
> PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
> __cdecl CDIBSectionLite::CDIBSectionLite(void)" (??0CDIBSectionLite@@QAA@XZ)
> referenced in function "protected: __cdecl
> CPocketPCTestView::CPocketPCTestView(void)" (??0CPocket
> PCTestView@@IAA@XZ)
> PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
> virtual __cdecl CDIBSectionLite::~CDIBSectionLite(void)"
> (??1CDIBSectionLite@@UAA@XZ) referenced in function "public: virtual __cdecl
> CPocketPCTestView::~CPocketPCTestView(voi
> d)" (??1CPocketPCTestView@@UAA@XZ)
> PocketPCTestView.obj : error LNK2019: unresolved external symbol "public:
> int __cdecl CDIBSectionLite::Draw(class CDC *,class CPoint,int)"
> (?Draw@CDIBSectionLite@@QAAHPAVCDC@@VCPoint@@H@Z) referenced in function
> "public: virtual void __cdecl CPocket
> PCTestView::OnDraw(class CDC *)" (?OnDraw@CPocketPCTestView@@UAAXPAVCDC@@@Z)
> ARMDbg/PocketPCTest.exe : fatal error LNK1120: 4 unresolved externals
> Error executing link.exe.
> Creating browse info file...
>
> PocketPCTest.exe - 5 error(s), 0 warning(s)
>
> regards
> Dhananjaya
>
>
>

Reply to Guy

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

 

I do have the Library's that are needed and i have linked them. The the
functions and the class on which the linker is complaining is part of the
project..

So i am not sure on what may be causing that problem...

Regards

"Guy" <Guy@discussions.microsoft.com> wrote in message
news:A3CE3530-4EF1-4256-B9A2-E3454C1DA75F@microsoft.com...
> That's not the compiler giving the error, it's the linker. It needs to
> reference the lib file for the library you are calling - you need to
> reference it in your project.
>
> "Dhananjaya R" wrote:
>
> > Hi All,
> >
> > i am developing a image viewer application which draws a JPG file on the
HP
> > IPAQ (CE WM 2003).. I am using some libraries providing the compression
and
> > a DIBSection Wrapper class by Chris Munder ... but the following link
error
> > is coming. I am struck at this point please help me.
> >
> > I do have header file included in the application and the header has the
> > declaration of the functions the compiler says unresolved.
> >
> > public:
> > CDIBSectionLite(void);
> > virtual ~CDIBSectionLite();
> > void DeleteObject();
> >
> > BOOL LoadJPG(LPCTSTR lpszFileName);
> >
> > // Operations (Display)
> > public:
> > BOOL Draw(CDC* pDC, CPoint ptDest, BOOL bForceBackground = FALSE);
> > BOOL Stretch(CDC* pDC, CPoint ptDest, CSize size, BOOL
bForceBackground
> > = FALSE);
> >
> > Please help on solving this problem
> >
> > PocketPCTestView.cpp
> > Linking...
> > Creating library ARMDbg/PocketPCTest.lib and object
> > ARMDbg/PocketPCTest.exp
> > PocketPCTestView.obj : error LNK2019: unresolved external symbol
"public:
> > int __cdecl CDIBSectionLite::LoadJPG(unsigned short const *)"
> > (?oadJPG@CDIBSectionLite@@QAAHPBG@Z) referenced in function "protected:
> > __cdecl CPocketPCTestView::CPocketPCTest
> > View(void)" (??0CPocketPCTestView@@IAA@XZ)
> > PocketPCTestView.obj : error LNK2019: unresolved external symbol
"public:
> > __cdecl CDIBSectionLite::CDIBSectionLite(void)"
(??0CDIBSectionLite@@QAA@XZ)
> > referenced in function "protected: __cdecl
> > CPocketPCTestView::CPocketPCTestView(void)" (??0CPocket
> > PCTestView@@IAA@XZ)
> > PocketPCTestView.obj : error LNK2019: unresolved external symbol
"public:
> > virtual __cdecl CDIBSectionLite::~CDIBSectionLite(void)"
> > (??1CDIBSectionLite@@UAA@XZ) referenced in function "public: virtual
__cdecl
> > CPocketPCTestView::~CPocketPCTestView(voi
> > d)" (??1CPocketPCTestView@@UAA@XZ)
> > PocketPCTestView.obj : error LNK2019: unresolved external symbol
"public:
> > int __cdecl CDIBSectionLite::Draw(class CDC *,class CPoint,int)"
> > (?Draw@CDIBSectionLite@@QAAHPAVCDC@@VCPoint@@H@Z) referenced in function
> > "public: virtual void __cdecl CPocket
> > PCTestView::OnDraw(class CDC *)"
(?OnDraw@CPocketPCTestView@@UAAXPAVCDC@@@Z)
> > ARMDbg/PocketPCTest.exe : fatal error LNK1120: 4 unresolved externals
> > Error executing link.exe.
> > Creating browse info file...
> >
> > PocketPCTest.exe - 5 error(s), 0 warning(s)
> >
> > regards
> > Dhananjaya
> >
> >
> >

Reply to Anonymous
Tom's Hardware > Forum > Smartphones & PDAs > Multimedia > Library Link error.
Go to:

There are 641 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them