Re: Library Link error.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A3CE3530-4EF1-4256-B9A2-E3454C1DA75F@xxxxxxxxxxxxxxxx
> 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
> >
> >
> >


.



Relevant Pages

  • Re: how does aio_write() work
    ... nass wrote: ... reference to aio_write' ... since i have #include in my class's header file? ... You need to tell your linker where to find aio_write. ...
    (comp.unix.programmer)
  • Re: system constants in COBOL
    ... and never get to the linker. ... What is worse the extra code will be a memory reference. ... 01 RETURN-STATUS PIC S9COMP. ... STL R17, -8 ...
    (comp.os.vms)
  • Re: system constants in COBOL
    ... and never get to the linker. ... What is worse the extra code will be a memory reference. ... 01 RETURN-STATUS PIC S9COMP. ... STL R17, -8 ...
    (comp.os.vms)
  • Re: set x=nothing
    ... Setting an object to nothing releases the reference ... Dim FSO, Bool ... MsgBox isobject ...
    (microsoft.public.scripting.vbscript)
  • Re: static variables discarded by the VS.NET2003 linker
    ... Linker/Input/Force Symbol Reference, ... In general the problem with VS.NET 2003 linker is that it will discard ... would be accessed via that global container. ... and make the linker to include the needed object files without forcing ...
    (microsoft.public.vc.language)