You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have followed the following steps to install miracl. But when I compile it it gives man error.
Compile and run config.c on the target processor.
Action: gcc confing.c (it gives some warning) .then i run /a.out and then I entered some times y some times n.
Rename the generated file mirdef.tst to mirdef.h
Action: mv mirdef.tst mirdef.h and then copied this file in MIRACL-master/include
3. copied the standard C version mrmuldv.ccc to mrmuldv.c and use this to compile
Make sure that all the MIRACL header files are accessible to the compiler. Typically the flag –I. or /I. allows these headers to be accessed from the current directory.
Action: To ensure this I used the following command to compile gcc –I /home/mypc/Desktop/MIRACL-master/include –c –O2 mr*.c
Compile the MIRACL modules listed in the generated file miracl.lst and create a library file, typically miracl.a or miracl.lib. This might be achieved by editing miracl.lst into a suitable batch or make file. On UNIX it might be as simple as:
Action: cd /home/mypc/Desktop/MIRACL-master/source; gcc –I /home/mypc/Desktop/MIRACL-master/include –c –O2 mr*.c
It gives many error. Some are as follows. Please help me in resolving these errors.
mrarth1.c:56:10: fatal error: ieeefp.h: No such file or directory
56 | #include <ieeefp.h>
| ^~~~~~~~~~
compilation terminated.
mrmonty.c: In function ‘prepare_monty’:
mrmonty.c:145:20: error: invalid operands to binary >> (have ‘mr_small’ {aka ‘double’} and ‘int’)
145 | if (n->w[n->len-1]>>M4 < 5) mr_mip->NO_CARRY=TRUE;
| ~~~~~~~~~~~~~~^~
| |
| mr_small {aka double}
mrmuldv12.c: In function ‘muldiv’:
mrmuldv12.c:7:13: error: unknown type name ‘_asm’
7 | #define ASM _asm
| ^~~~
mrmuldv12.c:12:9: note: in expansion of macro ‘ASM’
12 | ASM mov eax,DWORD PTR a
| ^~~
mrmuldv12.c:12:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘eax’
12 | ASM mov eax,DWORD PTR a
| ^~~
mrmuldv12.c:15:23: error: invalid suffix "h" on integer constant
15 | ASM adc edx,0h
The text was updated successfully, but these errors were encountered:
I have followed the following steps to install miracl. But when I compile it it gives man error.
Compile and run config.c on the target processor.
Action: gcc confing.c (it gives some warning) .then i run /a.out and then I entered some times y some times n.
Rename the generated file mirdef.tst to mirdef.h
Action: mv mirdef.tst mirdef.h and then copied this file in MIRACL-master/include
Action: To ensure this I used the following command to compile gcc –I /home/mypc/Desktop/MIRACL-master/include –c –O2 mr*.c
Action: cd /home/mypc/Desktop/MIRACL-master/source; gcc –I /home/mypc/Desktop/MIRACL-master/include –c –O2 mr*.c
It gives many error. Some are as follows. Please help me in resolving these errors.
mrarth1.c:56:10: fatal error: ieeefp.h: No such file or directory
56 | #include <ieeefp.h>
| ^~~~~~~~~~
compilation terminated.
mrmonty.c: In function ‘prepare_monty’:
mrmonty.c:145:20: error: invalid operands to binary >> (have ‘mr_small’ {aka ‘double’} and ‘int’)
145 | if (n->w[n->len-1]>>M4 < 5) mr_mip->NO_CARRY=TRUE;
| ~~~~~~~~~~~~~~^~
| |
| mr_small {aka double}
mrmuldv12.c: In function ‘muldiv’:
mrmuldv12.c:7:13: error: unknown type name ‘_asm’
7 | #define ASM _asm
| ^~~~
mrmuldv12.c:12:9: note: in expansion of macro ‘ASM’
12 | ASM mov eax,DWORD PTR a
| ^~~
mrmuldv12.c:12:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘eax’
12 | ASM mov eax,DWORD PTR a
| ^~~
mrmuldv12.c:15:23: error: invalid suffix "h" on integer constant
15 | ASM adc edx,0h
The text was updated successfully, but these errors were encountered: