[CLN-list] Compilation error:
Isidro Cachadiña Gutiérrez
icacha at unex.es
Tue Dec 14 09:20:15 CET 2004
El Martes, 14 de Diciembre de 2004 00:48, Richard B. Kreckel escribió:
> On Mon, 13 Dec 2004, Isidro [iso-8859-15] Cachadiña Gutiérrez wrote:
> > Hi again:
> >
> > Can be overloaded the + and - operators to compile these silly lines:
> >
> > cl_F a,b;
> >
> > a=1*b;
> > a=1/b;
> >
> > and some like these?
>
> Are you having a good time with that stuff you are smoking? Pay attention!
>
> We've gone through this before, if you care to remember. Just look here:
Yes, you sent a patch to this maillist that only affects to files in <cln/...>
then I applyed your patch in /usr/include/cln/* and things like 1+a works
fine but not the above example . Well I send you a program to cut and
compile. If works for you then I'll recompile the cvs source and try.
----------------------------- cut and compile --------------------------
#include <cln/float.h>
using namespace cln;
int main(int argc, char **argv)
{
cl_F a;
a=1/a;
a=1*a;
}
--------------------------------------------------------------------------
test.C: En function `int main(int, char**)':
test.C:7: error: no match for 'operator=' in 'a = cln::operator/(int, const
cln::cl_F&)((&a))'
/usr/include/cln/float_class.h:40: error: candidates are: cln::cl_F&
cln::cl_F::operator=(const cln::cl_F&)
/usr/include/cln/float_class.h:47: error: cln::cl_F&
cln::cl_F::operator=(float)
/usr/include/cln/float_class.h:48: error: cln::cl_F&
cln::cl_F::operator=(double)
test.C:8: error: no match for 'operator=' in 'a = cln::operator*(int, const
cln::cl_F&)((&a))'
/usr/include/cln/float_class.h:40: error: candidates are: cln::cl_F&
cln::cl_F::operator=(const cln::cl_F&)
/usr/include/cln/float_class.h:47: error: cln::cl_F&
cln::cl_F::operator=(float)
/usr/include/cln/float_class.h:48: error: cln::cl_F&
cln::cl_F::operator=(double)
make: *** [test.o] Error 1
---------------------------------------------------------------------------
Bye.
--
***************************************************************************
* Dr. Isidro Cachadiña Gutiérrez *
* Departamento de Física *
* Facultad de Ciencias *
* Universidad de Extremadura *
* 06071 Badajoz ( SPAIN ) *
* email: icacha at unex.es *
* Teléfono: +34 924 289 300 Ext. 6826 Fax: +34 924 289 651 *
***************************************************************************
* Usuario Linux: 8569 *
* Para clave pública GnuPG: http://onsager.unex.es/firma.pub.asc *
***************************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.cebix.net/pipermail/cln-list/attachments/20041214/0b4a781e/attachment.pgp
More information about the CLN-list
mailing list