ld: warning: symbol `vtable for amuleIPV4Address' has differing sizes:
(file amule-BaseClient.o value=0x30; file amule-ClientUDPSocket.o value=0x2c);
amule-BaseClient.o definition taken
ld: warning: symbol `vtable for amuleIPV4Address' has differing sizes:
(file amule-BaseClient.o value=0x30; file amule-UDPSocket.o value=0x2c);
amule-BaseClient.o definition taken
In UDPSocket.cpp:
[code:1]// prevent fscking dns queries
class amuleIPV4Address : public wxIPV4address {
public:
amuleIPV4Address() : wxIPV4address() {};
virtual bool Hostname(unsigned long addr) {
return GAddress_INET_SetHostAddress(m_address,addr)==GSOCK_NOERROR;
};
};
In BaseClient.cpp:
// prevent fscking dns queries
class amuleIPV4Address : public wxIPV4address {
public:
amuleIPV4Address() : wxIPV4address() {};
virtual bool Hostname(unsigned long addr) {
return GAddress_INET_SetHostAddress(m_address,addr)==GSOCK_NOERROR;
};
virtual bool Hostname(char* addr) {
struct in_addr inaddr;
inet_aton(addr,&inaddr);
return GAddress_INET_SetHostAddress(m_address,inaddr.s_addr)==GSOCK_NOERROR;
}
};[/code:1]
grep class.amuleIPV4Address *.cpp
BaseClient.cpp:class amuleIPV4Address : public wxIPV4address {
ClientUDPSocket.cpp:class amuleIPV4Address : public wxIPV4address
UDPSocket.cpp:class amuleIPV4Address : public wxIPV4address {
Why is this class multiple times defined inside source? Shouldn't this belong to some include file?