use class CPAlbImageViewerBasic - unresolved external symbol

Login to reply to this topic.
Tue, 2006-03-07 23:50
Joined: 2006-03-07
Forum posts: 5
Hi,

I'm trying to use class CPAlbImageViewerBasic to display jpg picture. I know I need this code against Palbview.lib.
I've appended row "LIBRARY Palbview.lib" into my mmp-file. But always this error is displayed.

error LNK2019: unresolved external symbol "public: void __thiscall CPAlbImageViewerBasic:: ...

I use VS2003 + Carbide. It's right way to solve this problem? If I change and save mmp-file and build the project, VS show error and ask me to reload mmp-file or not. ("mmp-file has been modified outside of the source editor. Do you want to reload it?")

If I confirm Yes, the row "LIBRARY Palbview.lib" is marked as a comment (like // LIBRARY...)

How can I use this class? Specially how can I link this code?

Thanks and sorry for my english


Wed, 2006-03-08 07:47
Joined: 2006-03-07
Forum posts: 15
Re: use class CPAlbImageViewerBasic - unresolved external symbol
Hi
Did you include this header file??
PAlbImageViewerBasic.h
just check it out

Also try to insert additional dlls and add palbview.dll file
Actually we use this in vc++ editor

also see to the following usage
Examples: 1) Instantiation CPAlbImageViewerBasic* iViewer = CPAlbImageViewerBasic::NewL(this, Rect());
2) Loading a new image into the control iViewer->SetImageNameAndDisplaymodeL(_L("C:\Images\mini.jpg"), EColor4K); iViewer->LoadImageL();

or

2) iViewer->LoadImageL(_L("C:\Images\mini.jpg"), EColor4K); iViewer->ScaleOptimumL();

3) Rotation, around the center point of the visible window. RotateLeftL() and RotateRightL()

4) Panning, will move the center point of the window by half of the screen dimensions. PanLeft(); PanRight(); PanUp(); PanDown();


I wish this would help you
Raja

Raja

Wed, 2006-03-08 08:35
Joined: 2006-03-07
Forum posts: 5
Re: use class CPAlbImageViewerBasic - unresolved external symbol
Thanks for the response,

header file is OK. My code is compiled and error is displayed during linking...
How can I include ddl file? Just write into mmp-file?
VS2003 doesn't use that library...

This is the part of mmp where libraries are situated
LIBRARY                                 cone.lib
LIBRARY                                 eikcore.lib
LIBRARY                                 euser.lib
LIBRARY                                 apparc.lib
LIBRARY                                 eikcoctl.lib
LIBRARY                                 avkon.lib
// [-]    LIBRARY                       Palbview.lib

VS commnets my modification after compilation

I really don't know why.

I use SDK 2.0.

Have anybody same problem?

Thanks
Wed, 2006-03-08 08:44
Joined: 2006-03-07
Forum posts: 15
Re: use class CPAlbImageViewerBasic - unresolved external symbol
Every lib is associated with a dll file having same name
i.e., palbview.lib and palbview.dll exists together in the same folder
And you should not include this dll file in the same way as you do for lib in mmp file
Ok another idea
Just do this thing
place this in mmp file
LIBRARY                                 avkon.lib    Palbview.lib
instead of
LIBRARY                                 avkon.lib
LIBRARY                              Palbview.lib
I suppose this line would not be commented because avkon.lib is compulsory

Just reply me if that works



Raja

Wed, 2006-03-08 09:44
Joined: 2006-03-07
Forum posts: 5
Re: use class CPAlbImageViewerBasic - unresolved external symbol
Error is still here...

It seems, VS doesn't care about mmp-file and if it's modified and program is compiled VS show question to reload mmp. Reload marked line as a comment.
(if I write LIBRARY avkon.lib palbview.lib ... VS seperate it to diferent lines)

This is output of program epoc.exe from VS2003.
There are many lines such as these:
. . .
'epoc.exe': Loaded 'C:\Symbian\7.0s\Series60_v20\Epoc32\release\wins\udeb\avkon.dll', No symbols loaded.
. . .
'epoc.exe': Loaded 'C:\Symbian\7.0s\Series60_v20\Epoc32\release\wins\udeb\palbview.dll', No symbols loaded.
. . .

I think epoc.exe search for the symbols from program in these libs, but I don't understand why it doesn't load symbols from avkon or palbview, which I use in my program!?
Wed, 2006-03-08 09:59
Joined: 2006-03-07
Forum posts: 5
Re: use class CPAlbImageViewerBasic - unresolved external symbol
problem si solved!

In VS Project properties must be set linker input!
(additional depencies)

The linker doesn't work, if libraries are written only in mmp... It's curious, but...

Mazi
Wed, 2006-03-08 10:03
Joined: 2006-03-07
Forum posts: 15
Re: use class CPAlbImageViewerBasic - unresolved external symbol
Great!!!!
Nice to hear your problem is solved
i was still studying about it
Any ways we'll meet for the next problem
If you have time i have placed my problem please try to look at it
Bye
Raja

Raja

  • Login to reply to this topic.