Dakle uzeo sam jedan open-source programcic koji simulira kreaciju Warcraft III mape (koristeci B.Net protokole) i to sve. Moddao sam (koliko mi C++ znanje, dakle improviziram, i orijentacija u tuđem kodu dopusta, dobro je komentirana pa shvacam kak sve tocno radi). No sada sam skinuo sve nepotrebno headere i source fileove te dosta variabli, komandi, procedura, funkcija - htio sam samo client koji visi na B.Netu te ima bazu istu kao i pocetna, samo sam maknuo neke komande koje unose stvari. Ovo je Build Release i Build Debug log:
------ Build started: Project: ghost, Configuration: Release Win32 ------
Linking...
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__hashPassword@8
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__nls_free@4
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__nls_get_M1@16
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__nls_init_l@16
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__nls_get_A@8
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__extractMPQNumber@4
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__getExeInfo@20
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::getHash(char *)" (__imp_?getHash@CDKeyDecoder@@QAEIPAD@Z)
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::calculateHash(unsigned int,unsigned int)" (__imp_?calculateHash@CDKeyDecoder@@QAEIII@Z)
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::getVal1(void)" (__imp_?getVal1@CDKeyDecoder@@QAEIXZ)
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::getProduct(void)" (__imp_?getProduct@CDKeyDecoder@@QAEIXZ)
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall CDKeyDecoder::isKeyValid(void)" (__imp_?isKeyValid@CDKeyDecoder@@QAEHXZ)
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CDKeyDecoder::~CDKeyDecoder(void)" (__imp_??1CDKeyDecoder@@UAE@XZ)
bncsutilinterface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CDKeyDecoder::CDKeyDecoder(char const *,unsigned int)" (__imp_??0CDKeyDecoder@@QAE@PBDI@Z)
bncsutilinterface.obj : error LNK2001: unresolved external symbol __imp__checkRevisionFlat@24
bnet.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGHost::EventBNETConnectTimedOut(class CBNET *)" (?EventBNETConnectTimedOut@CGHost@@QAEXPAVCBNET@@@Z)
bnet.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGHost::EventBNETLoggedIn(class CBNET *)" (?EventBNETLoggedIn@CGHost@@QAEXPAVCBNET@@@Z)
bnet.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGHost::EventBNETDisconnected(class CBNET *)" (?EventBNETDisconnected@CGHost@@QAEXPAVCBNET@@@Z)
bnet.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGHost::EventBNETConnected(class CBNET *)" (?EventBNETConnected@CGHost@@QAEXPAVCBNET@@@Z)
bnet.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGHost::EventBNETConnecting(class CBNET *)" (?EventBNETConnecting@CGHost@@QAEXPAVCBNET@@@Z)
C:\Documents and Settings\Administrator\Desktop\CHAT BOT PROJECT\ghost\Release\ghost.exe : fatal error LNK1120: 20 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CHAT BOT PROJECT\ghost\Release\BuildLog.htm"
ghost - 21 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
------ Build started: Project: ghost, Configuration: Debug Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__nls_init_l@16 referenced in function "public: __thiscall NLS::NLS(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0NLS@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__nls_free@4 referenced in function "public: virtual __thiscall NLS::~NLS(void)" (??1NLS@@UAE@XZ)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__checkRevisionFlat@24 referenced in function "public: bool __thiscall CBNCSUtilInterface::HELP_SID_AUTH_CHECK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<unsigned char,class std::allocator<unsigned char> >)" (?HELP_SID_AUTH_CHECK@CBNCSUtilInterface@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0000V?$vector@EV?$allocator@E@std@@@3@1@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__extractMPQNumber@4 referenced in function "public: bool __thiscall CBNCSUtilInterface::HELP_SID_AUTH_CHECK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<unsigned char,class std::allocator<unsigned char> >)" (?HELP_SID_AUTH_CHECK@CBNCSUtilInterface@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0000V?$vector@EV?$allocator@E@std@@@3@1@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__getExeInfo@20 referenced in function "public: bool __thiscall CBNCSUtilInterface::HELP_SID_AUTH_CHECK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::vector<unsigned char,class std::allocator<unsigned char> >,class std::vector<unsigned char,class std::allocator<unsigned char> >)" (?HELP_SID_AUTH_CHECK@CBNCSUtilInterface@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0000V?$vector@EV?$allocator@E@std@@@3@1@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__nls_get_A@8 referenced in function "public: void __thiscall NLS::getPublicKey(char *)" (?getPublicKey@NLS@@QAEXPAD@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__nls_get_M1@16 referenced in function "public: void __thiscall NLS::getClientSessionKey(char *,char const *,char const *)" (?getClientSessionKey@NLS@@QAEXPADPBD1@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol __imp__hashPassword@8 referenced in function "public: bool __thiscall CBNCSUtilInterface::HELP_PvPGNPasswordHash(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?HELP_PvPGNPasswordHash@CBNCSUtilInterface@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CDKeyDecoder::~CDKeyDecoder(void)" (__imp_??1CDKeyDecoder@@UAE@XZ) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::getHash(char *)" (__imp_?getHash@CDKeyDecoder@@QAEIPAD@Z) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::calculateHash(unsigned int,unsigned int)" (__imp_?calculateHash@CDKeyDecoder@@QAEIII@Z) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::getVal1(void)" (__imp_?getVal1@CDKeyDecoder@@QAEIXZ) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall CDKeyDecoder::getProduct(void)" (__imp_?getProduct@CDKeyDecoder@@QAEIXZ) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CDKeyDecoder::isKeyValid(void)" (__imp_?isKeyValid@CDKeyDecoder@@QAEHXZ) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bncsutilinterface.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CDKeyDecoder::CDKeyDecoder(char const *,unsigned int)" (__imp_??0CDKeyDecoder@@QAE@PBDI@Z) referenced in function "private: class std::vector<unsigned char,class std::allocator<unsigned char> > __thiscall CBNCSUtilInterface::CreateKeyInfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,unsigned int)" (?CreateKeyInfo@CBNCSUtilInterface@@AAE?AV?$vector@EV?$allocator@E@std@@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@II@Z)
bnet.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGHost::EventBNETConnecting(class CBNET *)" (?EventBNETConnecting@CGHost@@QAEXPAVCBNET@@@Z) referenced in function "public: bool __thiscall CBNET::Update(void *)" (?Update@CBNET@@QAE_NPAX@Z)
bnet.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGHost::EventBNETConnectTimedOut(class CBNET *)" (?EventBNETConnectTimedOut@CGHost@@QAEXPAVCBNET@@@Z) referenced in function "public: bool __thiscall CBNET::Update(void *)" (?Update@CBNET@@QAE_NPAX@Z)
bnet.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGHost::EventBNETConnected(class CBNET *)" (?EventBNETConnected@CGHost@@QAEXPAVCBNET@@@Z) referenced in function "public: bool __thiscall CBNET::Update(void *)" (?Update@CBNET@@QAE_NPAX@Z)
bnet.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGHost::EventBNETDisconnected(class CBNET *)" (?EventBNETDisconnected@CGHost@@QAEXPAVCBNET@@@Z) referenced in function "public: bool __thiscall CBNET::Update(void *)" (?Update@CBNET@@QAE_NPAX@Z)
bnet.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGHost::EventBNETLoggedIn(class CBNET *)" (?EventBNETLoggedIn@CGHost@@QAEXPAVCBNET@@@Z) referenced in function "public: void __thiscall CBNET::ProcessPackets(void)" (?ProcessPackets@CBNET@@QAEXXZ)
C:\Documents and Settings\Administrator\Desktop\CHAT BOT PROJECT\ghost\Debug\ghost.exe : fatal error LNK1120: 20 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CHAT BOT PROJECT\ghost\Debug\BuildLog.htm"
ghost - 21 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Zanima me, kako bi to proradilo te ukratko objasnjenje o tim Library-ima te .obj fileovima (u smislu kako bi to proradilo sada) jer zaista sam samo micao stvari a nista nisam dodavao a compile svega pojedinacno zaista radi. S orginalnim sam dobio sve library-e poput StormLib, zlib etc. te su koristeni neki iz standardni poput time.h, string, sstream etc.