Official eMule-Board: How To Deal With "unresolved External Symbol"? - Official eMule-Board

Jump to content


Page 1 of 1

How To Deal With "unresolved External Symbol"? Step to Client Percentage

#1 User is offline   once375ml 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 84
  • Joined: 12-June 05

Posted 25 April 2009 - 07:52 PM

I successfully compile 0.49b official, 0.49b zzul mod and 0.49c zzul mod w 0.49b libs under VS 2003 sp1, then 0.49c official is done under VS 2008


Now, i want to merge client percentage into offcial source from MorphXT 11.3, then compile it

The first step is upload window.

I declare what should be declared in "updownclient.h"

Quote

...
void DrawCompletedPercent(CDC* dc, RECT* cur_rec) const; //Fafner: client percentage - 080325

...

//MORPH START - Added by SiRoB, Optimization requpfile
CKnownFile* CheckAndGetReqUpFile() const;
//MORPH END - Added by SiRoB, Optimization requpfile
...


then copy the source code, as blow, to official "UploadListCtrl.cpp"

Quote

// MORPH START
// Stullemon: I don't actually like this...
//MORPH START - Adde by SiRoB, Optimization requpfile
/*
const CKnownFile *file = theApp.sharedfiles->GetFileByID(client->GetUploadFileID());
*/
const CKnownFile* file = client->CheckAndGetReqUpFile();
//MORPH END - Adde by SiRoB, Optimization requpfile
if (file) // protect against deleted file
client->DrawCompletedPercent(dc,&cur_rec); //Fafner: client percentage - 080325
// MORPH END


while linking, errors appear:

Quote

8>Linking...
8>UploadListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall CUpDownClient::DrawCompletedPercent(class CDC *,struct tagRECT *)const " (?DrawCompletedPercent@CUpDownClient@@QBEXPAVCDC@@PAUtagRECT@@@Z) referenced in function "protected: virtual void __thiscall CUploadListCtrl::DrawItem(struct tagDRAWITEMSTRUCT *)" (?DrawItem@CUploadListCtrl@@MAEXPAUtagDRAWITEMSTRUCT@@@Z)
8>UploadListCtrl.obj : error LNK2019: unresolved external symbol "public: class CKnownFile * __thiscall CUpDownClient::CheckAndGetReqUpFile(void)const " (?CheckAndGetReqUpFile@CUpDownClient@@QBEPAVCKnownFile@@XZ) referenced in function "protected: virtual void __thiscall CUploadListCtrl::DrawItem(struct tagDRAWITEMSTRUCT *)" (?DrawItem@CUploadListCtrl@@MAEXPAUtagDRAWITEMSTRUCT@@@Z)
8>Release_vc9\emule.exe : fatal error LNK1120: 2 unresolved externals



I donn't know what to do next.

This post has been edited by once375ml: 25 April 2009 - 07:55 PM

-= MoD WANTED =-

1. SlotFocus
2. Import Part(s) from a file
3. CA
4. ClientPercentage
5. IP2Country
6. Not MorphXT, IT IS TOO HEAVY!


0

#2 User is offline   Rapid_Mule 

  • "routing problems on the neural net"
  • PipPipPipPipPip
  • Group: Members
  • Posts: 256
  • Joined: 03-May 04

Posted 25 April 2009 - 08:42 PM

Copy the function "CUpDownClient::DrawCompletedPercent" from MorphXT in "UploadClient.cpp" and try again.

Regards.
0

#3 User is offline   once375ml 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 84
  • Joined: 12-June 05

Posted 26 April 2009 - 12:08 AM

Thanks for your guide
-= MoD WANTED =-

1. SlotFocus
2. Import Part(s) from a file
3. CA
4. ClientPercentage
5. IP2Country
6. Not MorphXT, IT IS TOO HEAVY!


0

#4 User is offline   Famerlor 

  • also known as Spike2
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 16-October 04

Posted 26 April 2009 - 10:58 AM

And the optimization requpfile has nothing to do with the client percentage feature !
Posted Image

You want a light mod with source-dropping, Powershare and WiZaRd's ClientAnalyzer ?
Try Spike2-Mod !

You rather want to stick to official eMule but don't want to miss all the new fixes and optimizations from the mods ?
Try OfFixed-Mod !


This post has been edited 1 time, the last time by God: Tomorrow, 12:74 PM
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users