I had similar problems. I would guess that the latest GCC is more picky about some things than before. If you use the attached patch, it should compile OK. Apply it with: patch -p1 < compile.patch The first problem is because the PString class has an operator+ for char, but not for int. So it has a problem with inserting the LDAP port (typically 389) into the string. This should probably be fixed in the PString class, which is part of PWLib. I just commented out the code that put the LDAP port in there. The second problem is due to more precision on the overloading code than before. Regards, Jake On Monday 02 June 2003 13:23, hairul nizam  wrote: > Dear Sir; > Recently I have installed openh323 and pwlib libraries successfully, but > during I've compiled openh323gk there is one error prompted : > " > ldaplink.cxx: In member function `void LDAPCtrl::Initialize()': > ldaplink.cxx:179: choosing `PString PString::operator+(char) const' over ` > operator+' > ldaplink.cxx:179: because worst conversion for the former is better than > worst conversion for the latter > ldaplink.cxx:179: choosing `PString PString::operator+(char) const' over ` > operator+' > ldaplink.cxx:179: because worst conversion for the former is better than > worst conversion for the latter > ldaplink.cxx: In member function `virtual LDAPAnswer* > LDAPCtrl::DirectoryLookup(LDAPQuery&)': > ldaplink.cxx:345: call of overloaded `pow(double, unsigned int&)' is > ambiguous > /usr/include/bits/mathcalls.h:154: candidates are: double pow(double, > double) > /usr/include/c++/3.2/cmath:427: long double std::pow(long > double, int) > /usr/include/c++/3.2/cmath:423: float std::pow(float, int) > /usr/include/c++/3.2/cmath:419: double std::pow(double, > int) /usr/include/c++/3.2/cmath:410: long double > std::pow(long double, long double) > /usr/include/c++/3.2/cmath:401: float std::pow(float, > float) make: *** [obj_linux_x86_r/ldaplink.o] Error 1 > " > can you help me tp solve this problem? > > -regards- > hairul nizam > Researcher > Leapfrog Technologies Sdn. Bhd. > Malaysia > > _________________________________________________________________ > Download the latest MSN Messenger http://messenger.msn.com.my > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > List: Openh323gk-users@lists.sourceforge.net > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 > Homepage: http://www.gnugk.org/
Common subdirectories: openh323gk.dist/docs and openh323gk/docs Common subdirectories: openh323gk.dist/etc and openh323gk/etc Common subdirectories: openh323gk.dist/ldap and openh323gk/ldap diff -u openh323gk.dist/ldaplink.cxx openh323gk/ldaplink.cxx --- openh323gk.dist/ldaplink.cxx 2002-06-06 16:32:08.000000000 +0800 +++ openh323gk/ldaplink.cxx 2003-06-02 16:28:09.000000000 +0800 @@ -175,8 +175,10 @@ DEBUGPRINT("Initialize: no connection on " << ServerName << ":(" << ServerPort << ")" << endl << vcid << endl << vcHid); + //ERRORPRINT(PString("LDAPCtrl::Initialize: no connection on ") + + // ServerName + ":(" + ServerPort + ")"); ERRORPRINT(PString("LDAPCtrl::Initialize: no connection on ") + - ServerName + ":(" + ServerPort + ")"); + ServerName); ldap = NULL; } else { DEBUGPRINT("LDAPCtrl::Initialize: connection OK on" << @@ -323,7 +325,7 @@ } if(p.LDAPOperator!=LDAPQuery::LDAPNONE) filter+=")"; - unsigned int retry_count = 0; + int retry_count = 0; do { struct timeval * tm = new struct timeval; memcpy(tm, &timeout, sizeof(struct timeval));