Novalys
C++ Developer
You are welcome, just let us know if this solved your issue.
C:\Documents and Settings\Noobzinha\Desktop\0.3.4\vocation.cpp In member function `void Vocation::reset()':
296 C:\Documents and Settings\Noobzinha\Desktop\0.3.4\vocation.cpp [Warning] passing `float' for converting 2 of `void* memset(void*, int, size_t)'
C:\Documents and Settings\Noobzinha\Desktop\0.3.4\weapons.cpp In member function `virtual int32_t WeaponWand::getWeaponDamage(const Player*, const Creature*, const Item*, bool) const':
1043 C:\Documents and Settings\Noobzinha\Desktop\0.3.4\weapons.cpp [Warning] converting to `int32_t' from `float'
1044 C:\Documents and Settings\Noobzinha\Desktop\0.3.4\weapons.cpp [Warning] converting to `int32_t' from `float'
Kiss for you thxxThey are warnings, not errors but if you don't wanna see them you need to fix the following:
in vocation.cpp change:
memset(skillMultipliers, 2.0f, sizeof(skillMultipliers) - 1);
to this:
memset(skillMultipliers, 2, sizeof(skillMultipliers) - 1);
In weapons.cpp at the bottom change:
minValue *= vocation->getWandMultiplier();
maxValue *= vocation->getWandMultiplier();
to this:
minValue *= (int)vocation->getWandMultiplier();
maxValue *= (int)vocation->getWandMultiplier();
and that's it, no more warnings.. Tell me your output! Should compile fine now..
After hours of trying I was able to compile downgrading to Boost 1.35, The easiest way is to download this devpack and install it on the Dev-Cpp.
DevPack:
http://sites.google.com/site/ivucica/otserv-compiling/boost_ot.devpak?attredirects=0
Try at your own risk, I won't do any scanning since is just a devpack.
Work for me, just sharing with you guys. Thanks.
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Administrator\Desktop\0.2.2\dev-cpp\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Administrator\Desktop\0.2.2\dev-cpp\Makefile.win" all
g++.exe obj//account.o obj//actions.o obj//admin.o obj//allocator.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.o obj//commands.o obj//condition.o obj//configmanager.o obj//connection.o obj//container.o obj//creature.o obj//creatureevent.o obj//cylinder.o obj//database.o obj//databasemysql.o obj//databasesqlite.o obj//depot.o obj//exception.o obj//fileloader.o obj//game.o obj//gui.o obj//house.o obj//housetile.o obj//inputbox.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//items.o obj//logger.o obj//luascript.o obj//mailbox.o obj//map.o obj//md5.o obj//monster.o obj//monsters.o obj//movement.o obj//networkmessage.o obj//npc.o obj//otserv.o obj//outfit.o obj//outputmessage.o obj//party.o obj//player.o obj//playerbox.o obj//position.o obj//protocol.o obj//protocolgame.o obj//protocollogin.o obj//quests.o obj//raids.o obj//rsa.o obj//scheduler.o obj//scriptmanager.o obj//server.o obj//sha1.o obj//spawn.o obj//spells.o obj//status.o obj//talkaction.o obj//tasks.o obj//teleport.o obj//textlogger.o obj//thing.o obj//tile.o obj//tools.o obj//trashholder.o obj//vocation.o obj//waitlist.o obj//weapons.o obj//ban.o obj//protocolold.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"lib" -mwindows -O1 -lboost_regex -lboost_system -lgmp -lluasql_mysql -lluasql_sqlite -llua5.1 -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s
obj//admin.o:admin.cpp:(.text+0xbddf): undefined reference to `boost::system::get_generic_category()'
obj//admin.o:admin.cpp:(.text+0xbe05): undefined reference to `boost::system::get_generic_category()'
obj//admin.o:admin.cpp:(.text+0xbe2b): undefined reference to `boost::system::get_generic_category()'
obj//connection.o:connection.cpp:(.text+0x373d): undefined reference to `boost::system::get_generic_category()'
obj//connection.o:connection.cpp:(.text+0x3763): undefined reference to `boost::system::get_generic_category()'
obj//connection.o:connection.cpp:(.text+0x3789): more undefined references to `boost::system::get_generic_category()' follow
make.exe: *** [TheForgottenServer.exe] Error 1
Execution terminated