Mailinglist Archive: opensuse-packaging (134 mails)

< Previous Next >
Re: [opensuse-packaging] Call to a function is ambiguous
On Tue, Jul 05, 2011 at 08:25:31AM +0400, Ilya Chernykh wrote:
Hi, people! I have a following error when building a package:

application_ob.cpp:103:41: error: call of overloaded
'FormatFromExt(QString&)' is ambiguous
application_ob.cpp:103:41: note: candidates are:
/usr/include/openbabel-2.0/openbabel/obconversion.h:81:24: note: static
OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(const char*)
/usr/include/openbabel-2.0/openbabel/obconversion.h:84:24: note: static
OpenBabel::OBFormat* OpenBabel::OBConversion::FormatFromExt(std::string)

Does anybody know how to fix it?

Well, reading the error message you pass in a QString reference, but the
code has const char* and std::string to offer.

It might already know it can convert QString to one of those, but can't chose
which.

This could be caused by a newer QT version for instance or a newer openbabel
version.

You can explicitly convert the passed string to a const char* for instance to
ease
the compilers work.

Ciao, Marcus
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References