Compiling any recent version,snapshot or cvs with gcc3.4 i always got this error 
(differs a bit in line numbers in each version, but the error is the same) 

user.cpp: In constructor `ICQOwner::ICQOwner()':
user.cpp:3551: error: no matching function for call to `CIniFile::ReadNum(const 
char[7], long unsigned int, long int)'
../include/licq_file.h:49: note: candidates are: bool CIniFile::ReadNum(const char*, 
long unsigned int&, long unsigned int)
../include/licq_file.h:50: note:                 bool CIniFile::ReadNum(const char*, 
short unsigned int&, short unsigned int)
../include/licq_file.h:51: note:                 bool CIniFile::ReadNum(const char*, 
short int&, short int)
../include/licq_file.h:52: note:                 bool CIniFile::ReadNum(const char*, 
char&, char)
user.cpp: In constructor `ICQOwner::ICQOwner(const char*, long unsigned int)':
user.cpp:3619: error: no matching function for call to `CIniFile::ReadNum(const 
char[7], long unsigned int, long int)'
../include/licq_file.h:49: note: candidates are: bool CIniFile::ReadNum(const char*, 
long unsigned int&, long unsigned int)
../include/licq_file.h:50: note:                 bool CIniFile::ReadNum(const char*, 
short unsigned int&, short unsigned int)
../include/licq_file.h:51: note:                 bool CIniFile::ReadNum(const char*, 
short int&, short int)
../include/licq_file.h:52: note:                 bool CIniFile::ReadNum(const char*, 
char&, char)
make[2]: *** [user.o] Error 1
make[2]: Leaving directory `/usr/src/inet/licq-20040528/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/inet/licq-20040528'
make: *** [all] Error 2


i searched through the code and found the problem. GCC3.4 seems to be very petty with 
the declaration of variables.

To fix this problem simply add to the definition of m_nssTime in licq_user.h "unsigned 
long":


time_t m_nssTime;

must be changed to:

time_t unsigned long m_nss_Time;


in user.cpp remove the (unsigned long) in front of the m_nssTime (4 references)

and anything will be fine.

(at least it seems ;) )

Jochen









-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to