Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error LNK2019: unresolved external symbol

Status
Not open for further replies.

misthema

Programmer
Oct 1, 2009
1
FI
Hi!

I tried to google answers to this linker error, but didn't find anything that could solve my problem.

Here is the build log:

------ Build started: Project: server, Configuration: Debug Win32 ------
Linking...
AbstractPlayer.obj : error LNK2019: unresolved external symbol "public: __thiscall BufferReader::BufferReader(unsigned char *,unsigned int)" (??0BufferReader@@QAE@PAEI@Z) referenced in function "public: void __thiscall AbstractPlayer::Listen(void)" (?Listen@AbstractPlayer@@QAEXXZ)
Player.obj : error LNK2019: unresolved external symbol "public: signed char __thiscall BufferReader::getByte(void)" (?getByte@BufferReader@@QAECXZ) referenced in function "public: virtual void __thiscall Player::HandleRequest(class BufferReader)" (?HandleRequest@Player@@UAEXVBufferReader@@@Z)
Player.obj : error LNK2019: unresolved external symbol "public: __thiscall BufferWriter::~BufferWriter(void)" (??1BufferWriter@@QAE@XZ) referenced in function "public: virtual void __thiscall Player::HandleRequest(class BufferReader)" (?HandleRequest@Player@@UAEXVBufferReader@@@Z)
Session.obj : error LNK2001: unresolved external symbol "public: __thiscall BufferWriter::~BufferWriter(void)" (??1BufferWriter@@QAE@XZ)
Player.obj : error LNK2019: unresolved external symbol "public: void __thiscall BufferWriter::addShort(short)" (?addShort@BufferWriter@@QAEXF@Z) referenced in function "public: virtual void __thiscall Player::HandleRequest(class BufferReader)" (?HandleRequest@Player@@UAEXVBufferReader@@@Z)
Player.obj : error LNK2019: unresolved external symbol "public: __thiscall BufferWriter::BufferWriter(void)" (??0BufferWriter@@QAE@XZ) referenced in function "public: virtual void __thiscall Player::HandleRequest(class BufferReader)" (?HandleRequest@Player@@UAEXVBufferReader@@@Z)
Player.obj : error LNK2019: unresolved external symbol "public: short __thiscall BufferReader::getShort(void)" (?getShort@BufferReader@@QAEFXZ) referenced in function "public: virtual void __thiscall Player::HandleRequest(class BufferReader)" (?HandleRequest@Player@@UAEXVBufferReader@@@Z)
Session.obj : error LNK2019: unresolved external symbol "public: unsigned char * __thiscall BufferWriter::getBuffer(void)" (?getBuffer@BufferWriter@@QAEPAEXZ) referenced in function "public: void __thiscall Session::Send(class BufferWriter)" (?Send@Session@@QAEXVBufferWriter@@@Z)
Session.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall BufferWriter::getPos(void)" (?getPos@BufferWriter@@QAEIXZ) referenced in function "public: void __thiscall Session::Send(class BufferWriter)" (?Send@Session@@QAEXVBufferWriter@@@Z)
C:\Documents and Settings\misthema\My Documents\Visual Studio 2008\Projects\MMOprojekt\Debug\server.exe : fatal error LNK1120: 8 unresolved externals
Build log was saved at "file://c:\Documents and Settings\misthema\My Documents\Visual Studio 2008\Projects\MMOprojekt\Debug\BuildLog.htm"
server - 10 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
It means you're either missing the object files or the libraries containing

1) BufferReader
2) BufferWriter
3) Player
4) Session
5) AbastractPlayer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top