Can't compile the new server

Content and general development discussion, including maps, quests, and server code from the development team.
Locked
seeseekey
Peon
Peon
Posts: 21
Joined: 23 Aug 2007, 18:07
Contact:

Can't compile the new server

Post by seeseekey » 25 Aug 2007, 11:05

Hello,

i had me build a Code:Blocks environment. In this environment i can compile the new client without problems.

Now i would compile the new server but it doesn't work. I become linker error and i don't know where the error is.

The Code::Blocks output:

Account server:

Code: Select all

:: === TMWServ Accountserver, default ===
)]+0xd):: undefined reference to `TokenCollectorBase::TokenCollectorBase()'
)]+0x14):: undefined reference to `TokenCollectorBase::removeClient(int)'
)]+0x1b):: undefined reference to `TokenCollectorBase::insertClient(std::string const&, int)'
::~TokenCollector()]+0x16):: undefined reference to `TokenCollectorBase::~TokenCollectorBase()'
::~TokenCollector()]+0x16):: undefined reference to `TokenCollectorBase::~TokenCollectorBase()'
 int)]+0x1b):: undefined reference to `TokenCollectorBase::insertConnect(std::string const&, int)'
)]+0x1b):: undefined reference to `TokenCollectorBase::insertConnect(std::string const&, int)'
)]+0xd):: undefined reference to `TokenCollectorBase::TokenCollectorBase()'
)]+0x14):: undefined reference to `TokenCollectorBase::removeClient(int)'
)]+0x1b):: undefined reference to `TokenCollectorBase::insertClient(std::string const&, int)'
::~TokenCollector()]+0x16):: undefined reference to `TokenCollectorBase::~TokenCollectorBase()'
::~TokenCollector()]+0x16):: undefined reference to `TokenCollectorBase::~TokenCollectorBase()'
:: === Build finished: 12 errors, 0 warnings ===
Game server:

Code: Select all

:: === TMWServ Gameserver, default ===
.objs\src\game-server\character.o:character.cpp:(.text+0x99f):: undefined reference to `ItemModifiers::getValue(int) const'
.objs\src\game-server\character.o:character.cpp:(.text+0xa08):: undefined reference to `ItemModifiers::getValue(int) const'
.objs\src\game-server\character.o:character.cpp:(.text+0xa38):: undefined reference to `ItemModifiers::getValue(int) const'
.objs\src\game-server\character.o:character.cpp:(.text+0xb10):: undefined reference to `BuySell::cancel()'
.objs\src\game-server\gamehandler.o:gamehandler.cpp:(.text+0x14f8):: undefined reference to `ItemClass::use(Being*)'
.objs\src\game-server\gamehandler.o:gamehandler.cpp:(.text+0x2145):: undefined reference to `BuySell::perform(int, int)'
)]+0xd):: undefined reference to `TokenCollectorBase::TokenCollectorBase()'
)]+0x14):: undefined reference to `TokenCollectorBase::removeClient(int)'
)]+0x1b):: undefined reference to `TokenCollectorBase::insertClient(std::string const&, int)'
)]+0x1b):: undefined reference to `TokenCollectorBase::insertConnect(std::string const&, int)'
::~TokenCollector()]+0x16):: undefined reference to `TokenCollectorBase::~TokenCollectorBase()'
::~TokenCollector()]+0x16):: undefined reference to `TokenCollectorBase::~TokenCollectorBase()'
.objs\src\game-server\inventory.o:inventory.cpp:(.text+0x90e):: undefined reference to `ItemModifiers::applyAttributes(Being*) const'
.objs\src\game-server\inventory.o:inventory.cpp:(.text+0x213b):: undefined reference to `ItemModifiers::cancelAttributes(Being*) const'
.objs\src\game-server\inventory.o:inventory.cpp:(.text+0x2168):: undefined reference to `ItemModifiers::applyAttributes(Being*) const'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xacd):: undefined reference to `ItemModifiers::setValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xb05):: undefined reference to `ItemModifiers::setValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xb3d):: undefined reference to `ItemModifiers::setValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xb75):: undefined reference to `ItemModifiers::setValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xbb8):: undefined reference to `ItemModifiers::setValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xbf0):: undefined reference to `ItemModifiers::setAttributeValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xc28):: undefined reference to `ItemModifiers::setAttributeValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xc60):: undefined reference to `ItemModifiers::setAttributeValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xc98):: undefined reference to `ItemModifiers::setAttributeValue(int, int)'
.objs\src\game-server\itemmanager.o:itemmanager.cpp:(.text+0xcd0):: undefined reference to `ItemModifiers::setAttributeValue(int, int)'
.objs\src\scripting\lua.o:lua.cpp:(.text+0x25cb):: undefined reference to `BuySell::BuySell(Character*, bool)'
.objs\src\scripting\lua.o:lua.cpp:(.text+0x27a5):: undefined reference to `BuySell::cancel()'
.objs\src\scripting\lua.o:lua.cpp:(.text+0x29be):: undefined reference to `BuySell::cancel()'
.objs\src\scripting\lua.o:lua.cpp:(.text+0x2a59):: undefined reference to `BuySell::registerItem(int, int, int)'
.objs\src\scripting\lua.o:lua.cpp:(.text+0x2a90):: undefined reference to `BuySell::start(MovingObject*)'
:: === Build finished: 30 errors, 0 warnings ===


Can anyone help me?

Regards seeseekey
silene
Peon
Peon
Posts: 36
Joined: 12 Aug 2005, 20:19

Post by silene » 25 Aug 2007, 18:13

I'm not a code::blocks user, so I can't tell for sure. But my guess is that the code::blocks files describing the project are not up-to-date. They may be missing some recently added source files. Add these files to the project and try to compile again. It should work a lot better.
seeseekey
Peon
Peon
Posts: 21
Joined: 23 Aug 2007, 18:07
Contact:

Post by seeseekey » 25 Aug 2007, 20:55

You are to be proved correct. Thank you.
Locked