linux-mips
[Top] [All Lists]

problem about ISO C++...

To: linux-mips@linux-mips.org
Subject: problem about ISO C++...
From: abraxas abraxas <abraxas_dragon@yahoo.com.mx>
Date: Wed, 19 Oct 2005 12:01:07 -0500 (CDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.mx; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XO8i4tuUpFWn20DmB1Hc8la4kcQgRZTYGuwYgGMJ57xry5ozbprmIKvmiEX/hG5rRzucTxWFdqaEKPTGl+BRvD2QKECUzoshdaxzOA3ggLoL1oikUhq+m2tqdCsQWNOzg9HjpOwv6fuzIJRsFolaihKVlqHIwDVrKrw8qjDtibY= ;
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi...

I have next problem. I have a PC (Petium IV) with
Debian 3.1 OS. I installed a cross-compiler for MIPS
architecture, the versión is 3.4.4, all instalation
was perferct. But when I try compile a code, to throw
some errores: 
-----------------------------------------
../include/ecc.h:7: error: `GF2E' does not name a type
../include/ecc.h:9: error: `GF2E' does not name a type
../include/ecc.h:11: error: expected `,' or `...'
before '&' token
../include/ecc.h:11: error: ISO C++ forbids
declaration of `GF2E' with no type
.
.
.
../include/ecc.h:21: error: `GF2E' does not name a
type
../include/ecc.h:30: error: `GF2X' has not been
declared
../include/ecc.h:31: error: ISO C++ forbids
declaration of `Phi' with no type
../include/ecc.h:33: error: `GF2E' has not been
declared
../include/ecc.h:33: error: `GF2E' has not been
declared
../include/ecc.h:34: error: ISO C++ forbids
declaration of `A' with no type
../include/ecc.h:34: error: ISO C++ forbids
declaration of `B' with no type
.
.
.
--------------------------------------------

Here this a content of file ecc.h:
::::::::::::::::::::::::::::::::::::::::::::::::::
#include <NTL/GF2XFactoring.h>
#include <NTL/GF2E.h>
#include <NTL/ZZ.h>

// Elliptic curve parameters

GF2E ec_A();

GF2E ec_B();

void ec_init(const GF2E& A, const GF2E& B);

void ec_init(GF2X Phi, long a, long b);


// Elliptic curve point
class ec_point {
public:

        unsigned infinity;
        GF2E x,y;

        ec_point() { infinity=0; x=y=0L;}

        ~ec_point() {}

        ec_point& operator=(const ec_point& P)
                { infinity=P.infinity; x=P.x; y=P.y;
return *this; }

        static void init(GF2X Phi, long a, long b)
                { ec_init(Phi,a,b); }

        static void init(GF2E A, GF2E B)
                { ec_init(A,B); }

};


// Comparison

inline unsigned IsOnEC(const ec_point& P)
{
        return
(P.infinity||(P.y*(P.y+P.x))==(P.x*P.x*(P.x+ec_A())+ec_B()));
}

inline unsigned IsInfinity(const ec_point& P)
{
  return (P.infinity);
};

inline unsigned operator==(const ec_point& P, const
ec_point& Q)
{
  return ((P.infinity==Q.infinity)||(P.x==Q.x &&
P.y==Q.y));
};
.
.
.
:::::::::::::::::::::::::::::::::::::::::::::::::::

What me more disconcerts me is the error:
error: ISO C++ forbids declaration of <...> with no
type.

Someone have any idea, why is it error?

Thank you for advanced.

Greeting!!!


        
        
                
___________________________________________________________ 
Do You Yahoo!? 
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. 
http://net.yahoo.com.mx 


<Prev in Thread] Current Thread [Next in Thread>
  • problem about ISO C++..., abraxas abraxas <=