PDA

View Full Version : Compiling error rev 1912


Karayrem
05-23-2011, 06:09 AM
I tried compiling with VC++2008 express and I get a lot of these errors:

eqemuserver\zone\QuestInterface.h(4) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory

First time I got an error like this in awhile.

joligario
05-23-2011, 07:31 AM
Best to just upgrade to 2010 express. It is included there. Guess what I'm uninstalling/installing...

Karayrem
05-23-2011, 11:28 AM
gah, vc++2010 express is not exactly user friendly. I just tried to use it and It did a conversion over to 2010 from 2008 and I get even more error. such as

\eqemuserver\common\dbcore.h(9): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
3> spdat.cpp

\common\misc.cpp(11): fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory

I use the instruction on how to include those but 2010express says "VC++ Directories editing in Tools > Options has been deprecated.

VC++ Directories are now available as a user property sheet that is added by default to all projects.

Can someone help clarify this? lol

joligario
05-23-2011, 12:19 PM
Those first 2 mean you don't have your includes/libraries defined. Which relates to the third item. You right click the project in the solution explorer and select references.

Karayrem
05-23-2011, 01:07 PM
hmm lol there's 5 projects to selects. I select it in debug when I meant to do it in release. Then I realized I have to reselect those again of each 5 project. is there a way to just select it to include all projects instead of each and every project?

Anyhow Thanks you Joligario for the clarification. I'm learning something new everyday. =)

Anyway I got them 4 of 5 compiled. There was an error in the bot code ->

3>bot.cpp(5276): error C2065: 'parse' : undeclared identifier
3>bot.cpp(5276): error C2227: left of '->Event' must point to class/struct/union/generic type
3> type is ''unknown-type''
3>bot.cpp(13411): error C2065: 'parse' : undeclared identifier
3>bot.cpp(13411): error C2227: left of '->Event' must point to class/struct/union/generic type
3> type is ''unknown-type''

joligario
05-23-2011, 01:17 PM
Unfortunately, seems like 2010 express is not user friendly for the VC++ directories... you must do them individually.

lerxst2112
05-23-2011, 01:26 PM
Well, you can get it to compile in VC++ 2008 if you want to, although if the desire is for people to switch to 2010 the solution and project files should be updated to reflect that.

Comment out or remove #include <stdint.h> in QuestInterface.h and QuestParserCollection.h

Add typedef unsigned int uint32_t; to types.h

Add QuestParserCollection.cpp to the zone project.

That will make it work until there's an official fix or a switch to VC++ 2010 is made.

lerxst2112
05-23-2011, 01:30 PM
Unfortunately, seems like 2010 express is not user friendly for the VC++ directories... you must do them individually.

You should be able to change the base property sheet that is automatically included in each project and have it work.

I don't use 2010 very often, and don't have it installed on this machine, so I can't tell you exactly how to do it. In 2008 it would be View->Property Manager and then edit and save the appropriate property sheet.

KLS
05-23-2011, 01:39 PM
Fixing this atm check back in half hour to an hour.

Karayrem
05-23-2011, 01:42 PM
Tried to compiled it in release and I got this for errors:

1>spells.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>tasks.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>trading.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>waypoints.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>hate_list.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>mob.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>MobAI.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>questmgr.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>attack.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z) referenced in function "public: virtual void __thiscall NPC::Damage(class Mob *,int,unsigned short,enum SkillType,bool,signed char,bool)" (?Damage@NPC@@UAEXPAVMob@@HGW4SkillType@@_NC2@Z)
1>client.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>client_packet.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>entity.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventNPC(enum QuestEventID,class NPC *,class Mob *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventNPC@QuestParserCollection@@QAEXW4QuestEvent ID@@PAVNPC@@PAVMob@@V?$basic_string@DU?$char_trait s@D@std@@V?$allocator@D@2@@std@@I@Z)
1>bonuses.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::EventItem(enum QuestEventID,class Client *,class ItemInst *,unsigned int,unsigned int)" (?EventItem@QuestParserCollection@@QAEXW4QuestEven tID@@PAVClient@@PAVItemInst@@II@Z) referenced in function "public: bool __thiscall Client::CalcItemScale(unsigned int,unsigned int)" (?CalcItemScale@Client@@QAE_NII@Z)
1>client_packet.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventItem(enum QuestEventID,class Client *,class ItemInst *,unsigned int,unsigned int)" (?EventItem@QuestParserCollection@@QAEXW4QuestEven tID@@PAVClient@@PAVItemInst@@II@Z)
1>client.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QuestParserCollection::HasQuestSub(unsigned int,char const *)" (?HasQuestSub@QuestParserCollection@@QAE_NIPBD@Z) referenced in function "public: void __thiscall Client::ChannelMessageReceived(unsigned char,unsigned char,unsigned char,char const *,char const *)" (?ChannelMessageReceived@Client@@QAEXEEEPBD0@Z)
1>questmgr.obj : error LNK2001: unresolved external symbol "public: bool __thiscall QuestParserCollection::HasQuestSub(unsigned int,char const *)" (?HasQuestSub@QuestParserCollection@@QAE_NIPBD@Z)
1>trading.obj : error LNK2001: unresolved external symbol "public: bool __thiscall QuestParserCollection::HasQuestSub(unsigned int,char const *)" (?HasQuestSub@QuestParserCollection@@QAE_NIPBD@Z)
1>spells.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>tasks.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>tradeskills.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>zoning.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>mob.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>Object.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>PlayerCorpse.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>questmgr.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>client.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z) referenced infunction "public: void __thiscall Client::Signal(unsigned int)" (?Signal@Client@@QAEXI@Z)
1>client_packet.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>exp.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>forage.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventPlayer(enum QuestEventID,class Client *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int)" (?EventPlayer@QuestParserCollection@@QAEXW4QuestEv entID@@PAVClient@@V?$basic_string@DU?$char_traits@ D@std@@V?$allocator@D@2@@std@@I@Z)
1>client_packet.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QuestParserCollection::ItemHasQuestSub(class ItemInst *,char const *)" (?ItemHasQuestSub@QuestParserCollection@@QAE_NPAVI temInst@@PBD@Z) referenced in function "public: void __thiscall Client::Handle_OP_ItemVerifyRequest(class EQApplicationPacket const *)" (?Handle_OP_ItemVerifyRequest@Client@@QAEXPBVEQApp licationPacket@@@Z)
1>client_packet.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::EventSpell(enum QuestEventID,class NPC *,class Client *,unsigned int,unsigned int)" (?EventSpell@QuestParserCollection@@QAEXW4QuestEve ntID@@PAVNPC@@PAVClient@@II@Z) referenced in function "public: void __thiscall Client::Handle_OP_Translocate(class EQApplicationPacket const *)" (?Handle_OP_Translocate@Client@@QAEXPBVEQApplicati onPacket@@@Z)
1>spell_effects.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::EventSpell(enum QuestEventID,class NPC *,class Client *,unsigned int,unsigned int)" (?EventSpell@QuestParserCollection@@QAEXW4QuestEve ntID@@PAVNPC@@PAVClient@@II@Z)
1>client_packet.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QuestParserCollection::SpellHasQuestSub(unsigned int,char const *)" (?SpellHasQuestSub@QuestParserCollection@@QAE_NIPB D@Z) referenced in function "public: void __thiscall Client::Handle_OP_Translocate(class EQApplicationPacket const *)" (?Handle_OP_Translocate@Client@@QAEXPBVEQApplicati onPacket@@@Z)
1>spell_effects.obj : error LNK2001: unresolved external symbol "public: bool __thiscall QuestParserCollection::SpellHasQuestSub(unsigned int,char const *)" (?SpellHasQuestSub@QuestParserCollection@@QAE_NIPB D@Z)
1>command.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::ReloadQuests(bool)" (?ReloadQuests@QuestParserCollection@@QAEX_N@Z) referenced in function "void __cdecl command_reloadqst(class Client *,class Seperator const *)" (?command_reloadqst@@YAXPAVClient@@PBVSeperator@@@ Z)
1>net.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::ReloadQuests(bool)" (?ReloadQuests@QuestParserCollection@@QAEX_N@Z)
1>zone.obj : error LNK2001: unresolved external symbol "public: void __thiscall QuestParserCollection::ReloadQuests(bool)" (?ReloadQuests@QuestParserCollection@@QAEX_N@Z)
1>net.obj : error LNK2019: unresolved external symbol "public: __thiscall QuestParserCollection::~QuestParserCollection(void )" (??1QuestParserCollection@@QAE@XZ) referenced in function "public: void * __thiscall QuestParserCollection::`scalar deleting destructor'(unsigned int)" (??_GQuestParserCollection@@QAEPAXI@Z)
1>net.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::RegisterQuestInterface(clas s QuestInterface *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?RegisterQuestInterface@QuestParserCollection@@QA EXPAVQuestInterface@@V?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
1>net.obj : error LNK2019: unresolved external symbol "public: __thiscall QuestParserCollection::QuestParserCollection(void)" (??0QuestParserCollection@@QAE@XZ) referenced in function _main
1>spells.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QuestParserCollection::PlayerHasQuestSub(char const *)" (?PlayerHasQuestSub@QuestParserCollection@@QAE_NPB D@Z) referenced in function "public: void __thiscall Mob::CastedSpellFinished(unsigned short,unsigned int,unsigned short,unsigned short,unsigned int,short)" (?CastedSpellFinished@Mob@@QAEXGIGGIF@Z)
1>trading.obj : error LNK2019: unresolved external symbol "public: void __thiscall QuestParserCollection::AddVar(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> >)" (?AddVar@QuestParserCollection@@QAEXV?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@ Z) referenced in function "public: void __thiscall Client::FinishTrade(class Mob *)" (?FinishTrade@Client@@QAEXPAVMob@@@Z)
1>.\../Build/Zone.exe : fatal error LNK1120: 13 unresolved externals

I'll check back in a half hour to an hour and try again. lol

KLS
05-23-2011, 01:43 PM
That I'm not going to fix cause I don't have a copy of VS2008 atm you just need to add QuestParserCollection.cpp to the zone project is all.

Karayrem
05-23-2011, 01:47 PM
I was using this in VC++2010 express.

KLS
05-23-2011, 01:53 PM
I'm using VS10 which means my solution file will overwrite 2008's and they're not backwards compatible which is why I don't update it. Typically if you get an error like that it means some file wasn't included in the compilation or that a library wasn't included correctly.

Karayrem
05-23-2011, 01:58 PM
Ah okay, could probably start making a switch to VS10 to svn sometime in the near future.