Why do I get this error?

Ian Reinhart Geiser geiseri at yahoo.com
Sun Nov 10 16:32:10 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 10 November 2002 11:19 am, David Faure wrote:
> On Sunday 10 November 2002 17:12, Ian Reinhart Geiser wrote:
> > On Sunday 10 November 2002 09:51 am, Tobias Koenig wrote:
> > > On Sun, Nov 10, 2002 at 09:25:45AM -0500, Ian Reinhart Geiser wrote:
> > > > Greetings
> > >
> > > Hi Ian,
> > >
> > > > /usr/local/src/kdelibs/kabc/plugins/ldap/resourceldap.cpp: In method
> > > > `bool KABC::ResourceLDAP::open()':
> > > > /usr/local/src/kdelibs/kabc/plugins/ldap/resourceldap.cpp:98: cannot
> > > > convert `QCString()' from type `QCString' to type `char *'
> > >
> > > Does an explicit cast like
> > >   (char*)mHost.local8Bit()
> > > or
> > >   (const char*)mHost.local8Bit()
> > > help?
> >
> > This must be a gccism... the (char *) fails with the same error, but the
> > (const char *) only gives a warning of discarded qualifiers...
> >
> > What is the lesser of evils?
>
> mHost.local8Bit().data() is.
Ah yes, okay that fixed that error... now i just need to figure out why one of 
the defines is not being picked up from ldap.h :\

Solaris w/ OpenSSL and OpenLDAP support should be in a packageable state yet 
this weekend :)

Thanks
- -ian reinhart geiser
- -- 
========================================
It may be that your whole purpose in life is simply to serve as a
warning to others.
========================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9zooKPy62TRm8dvgRAjGMAKCFBiFgYfZXF6bb/Ltx/th2sprZOwCgz+9o
PhZ2PzsNcFqTKVJ7Op1NlLI=
=Zg7k
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list