Hi, I'm trying to compile the cvs source of tmwserv in Windows with
Dev-C++ (mingw), but I have problems linking tmwserv.exe:
**********************************************
make.exe -f "Makefile.win" all
g++.exe src/dal/dataprovider.o src/dal/dataproviderfactory.o
src/dal/recordset.o src/dal/sqlitedataprovider.o src/utils/logger.o
src/accounthandler.o src/connectionhandler.o src/dalstorage.o
src/debug.o src/main.o src/messagehandler.o src/messagein.o
src/messageout.o src/netcomputer.o src/netsession.o src/object.o
src/packet.o src/script.o src/script-squirrel.o src/skill.o
src/storage.o src/account.o src/SDL_win32_main.o src/utils/cipher.o=20
-L"C:/DEV-CPP/lib" -lmingw32 -lSDL -lSDL_net -lsqlite3 -lcrypto
-mconsole -mwindows -s
src/dalstorage.o(.text+0x17d1):dalstorage.cpp: undefined reference to
`tmwserv::Being::Being(std::string const&, Genders, unsigned short,
unsigned int, tmwserv::RawStatistics const&)'
src/dalstorage.o(.text+0x2b1a):dalstorage.cpp: undefined reference to
`tmwserv::Being::getRawStatistics()'
src/dalstorage.o(.text+0x2ba6):dalstorage.cpp: undefined reference to
`tmwserv::Being::getMoney() const'
src/dalstorage.o(.text+0x2bca):dalstorage.cpp: undefined reference to
`tmwserv::Being::getLevel() const'
src/dalstorage.o(.text+0x2bf1):dalstorage.cpp: undefined reference to
`tmwserv::Being::getGender() const'
src/dalstorage.o(.text+0x2c15):dalstorage.cpp: undefined reference to
`tmwserv::Being::getName() const'
src/dalstorage.o(.text+0x3581):dalstorage.cpp: undefined reference to
`tmwserv::Being::getName() const'
src/dalstorage.o(.text+0x36a3):dalstorage.cpp: undefined reference to
`tmwserv::Being::getRawStatistics()'
src/dalstorage.o(.text+0x3745):dalstorage.cpp: undefined reference to
`tmwserv::Being::getMoney() const'
src/dalstorage.o(.text+0x3769):dalstorage.cpp: undefined reference to
`tmwserv::Being::getLevel() const'
src/dalstorage.o(.text+0x3790):dalstorage.cpp: undefined reference to
`tmwserv::Being::getGender() const'
src/dalstorage.o(.text+0x37b4):dalstorage.cpp: undefined reference to
`tmwserv::Being::getName() const'
src/dalstorage.o(.text+0x3a80):dalstorage.cpp: undefined reference to
`tmwserv::Being::getMoney() const'
src/dalstorage.o(.text+0x3aa4):dalstorage.cpp: undefined reference to
`tmwserv::Being::getLevel() const'
src/dalstorage.o(.text+0x3acb):dalstorage.cpp: undefined reference to
`tmwserv::Being::getGender() const'
src/dalstorage.o(.text+0x3aef):dalstorage.cpp: undefined reference to
`tmwserv::Being::getName() const'
src/main.o(.text+0x7b2):main.cpp: undefined reference to
`Configuration::setValue(std::string const&, std::string)'
src/main.o(.text+0x976):main.cpp: undefined reference to
`Configuration::setValue(std::string const&, std::string)'
src/main.o(.text+0xb3a):main.cpp: undefined reference to
`Configuration::setValue(std::string const&, std::string)'
src/main.o(.text+0xd28):main.cpp: undefined reference to
`Configuration::init(std::string const&)'
src/main.o(.text+0xea0):main.cpp: undefined reference to
`Configuration::write()'
src/main.o(.text+0x1437):main.cpp: undefined reference to
`Configuration::getValue(std::string const&, std::string)'
src/main.o(.text+0x166f):main.cpp: undefined reference to
`Configuration::getValue(std::string const&, std::string)'
src/account.o(.text$_ZNK44_GLOBAL__N_src_account.cpp_3F6EE7DC_758D013111obj=
_name_isIN7tmwserv5utils10CountedPtrINS1_5BeingEEEEclERKS5_RKSs[(anonymous
namespace)::obj_name_is<tmwserv::utils::CountedPtr<tmwserv::Being>
>::operator()(tmwserv::utils::CountedPtr<tmwserv::Being> const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&) const]+0x15):account.cpp: undefined reference to
`tmwserv::Being::getName() const'
collect2: ld returned 1 exit status
**********************************************
What happens with those functions? Still they were not created?
* dalstorage.cpp
=09Being(std::string const&, Genders, unsigned short, unsigned int,
tmwserv::RawStatistics const&)
=09getRawStatistics()
=09getMoney()
=09getLevel()
=09getGender()
=09getName()
* main.cpp
=09setValue(std::string const&, std::string)
=09init(std::string const&)
=09write()
* account.cpp
=09getName()
I had to make the following changes to be able to compile it:
* In the Makefile.win created by Dev-C++
* Some files where the includes headers of SDL lacked the directory
where are these (Ex: <SDL_net.h> to <SDL/SDL_net.h>)
* Some changes in the tmwserv.dev
PD: Excuse my horrible english, I am using the translator of google :PP
PD2: Algun desarrollador que hable castellano ou portugu=EAs?
|