aMule Forum

English => en_Bugs => Topic started by: wimms on January 04, 2004, 08:16:18 PM

Title: symbol `vtable for amuleIPV4Address' has differing sizes:
Post by: wimms on January 04, 2004, 08:16:18 PM
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?
Title: Re: symbol `vtable for amuleIPV4Address' has differing sizes:
Post by: deltaHF on January 05, 2004, 10:28:47 AM
fixed on cvs