[ 
https://issues.apache.org/jira/browse/MILAGRO-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16857116#comment-16857116
 ] 

Giorgio Zoppi commented on MILAGRO-28:
--------------------------------------

I have still in mind for now to not present to the world the current C++ 
wrapped library since it is not C++ so for the moment we can close this.

> config64.py generate compiler errors
> ------------------------------------
>
>                 Key: MILAGRO-28
>                 URL: https://issues.apache.org/jira/browse/MILAGRO-28
>             Project: Milagro
>          Issue Type: Bug
>          Components: Core Crypto Libraries
>         Environment: Ubuntu 18.04 - gcc 7.3
>            Reporter: Giorgio Zoppi
>            Priority: Major
>
> The configuration produces compiler errors in the cpp binding. 
> Enviroment: Ubuntu 18.04
> Compiler: gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.
> Steps to reproduce:
>  # The user launches with python3 configure64.py
>  #  At the screen list start selecting things, in the following way
> Choose a Scheme to support - 0 to finish: 1                 
>  Choose a Scheme to support - 0 to finish: 2
>  ecp_C25519.cpp: In function ‘int C25519::ECP_get(int64_t*, C25519::ECP*)’:(
>  ecp_C25519.cpp:260:14: error: cannot convert ‘C25519::ECP’ to ‘C25519::ECP*’ 
> for argument ‘1’ to ‘void C25519::ECP_affine(C25519::ECP*)’
>    ECP_Choose a Scheme to support - 0 to finish: 4Choose a Scheme to support 
> - 0 to finish: 4
>  Choose a Scheme to support - 0 to finish: 5
>  Choose a Scheme to support - 0 to finish: 6
>  Choose a Scheme to support - 0 to finish: 7
>  Choose a Scheme to support - 0 to finish: 8
>  Choose a Scheme to support - 0 to finish: 9
>  Choose a Scheme to support - 0 to finish: 10
>  rom_field_NIST521.cpp:26:17: error: ‘B528_56’ is not a namespace-name
>  using namespace B528_56;
>  ^~~~~~~
>  rom_field_NIST521.cpp:26:24: error: expected namespace-name before ‘;’ token
>  using namespace B528_56;
>  ^
>  rom_field_NIST521.cpp:29:7: error: ‘BIG’ does not name a type
>  const BIG Modulus= 
> \{0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0x1FFFFFFFFFFL};
>  ^~~
>  rom_field_NIST521.cpp:30:7: error: ‘BIG’ does not name a type
>  const BIG R2modp= \{0x4000000000L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L};
>  Choose a Scheme to support - 0 to finish: 5
>  Choose a Scheme to support - 0 to finish: 6
>  Choose a Scheme to support - 0 to finish: 7
>  Choose a Scheme to support - 0 to finish: 8
>  Choose a Scheme to support - 0 to finish: 9
>  Choose a Scheme to support - 0 to finish: 10
>  rom_field_NIST521.cpp:26:17: error: ‘B528_56’ is not a namespace-name
>  using namespace B528_56;
>  ^~~~~~~
>  rom_field_NIST521.cpp:26:24: error: expected namespace-name before ‘;’ token
>  using namespace B528_56;
>  ^
>  rom_field_NIST521.cpp:29:7: error: ‘BIG’ does not name a type
>  const BIG Modulus= 
> \{0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0xFFFFFFFFFFFFFFFL,0x1FFFFFFFFFFL};
>  ^~~
>  rom_field_NIST521.cpp:30:7: error: ‘BIG’ does not name a type
>  const BIG R2modp= 
> \{0x4000000000L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L,0x0L};affine(W);
> Suppose now select 0 and exit, we will follow instructions as readme.rst and 
> we have.
> g++ -O2 testall.cpp amcl.a -o testall.exe
>  testall.cpp:27:10: fatal error: mpin_BN254.h: No such file or directory
>  #include "mpin_BN254.h"
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to