New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base must be binary #87
Comments
Hello,
It works fine here... It is most likely, as the error message suggests)
that your mirder.h file has been modified
Mike
…On Thu, May 21, 2020 at 10:38 PM CaptainLazarus ***@***.***> wrote:
After following all the instruction for installing miracl , I tried
running the first sample program for testing and have gotten the following
error.
MIRACL error from routine mirsys called from your program Base must be
binary (MR_ALWAYS_BINARY defined in mirdef.h ?)
Any idea where I went wrong?
The sample program I'm talking about
#include <stdio.h>
#include "miracl.h"
/* include MIRACL system */
void main()
{ /* calculate factorial of number */
big nf;
/* declare "big" variable nf */
int n;
miracl *mip=mirsys(5000,10);
// nf=mirvar(1);
printf("factorial program\n");
printf("input number n= \n");
scanf("%d",&n);
getchar();
while (n>1)
premult(nf,n--,nf);
printf("n!= \n");
otnum(nf,stdout); /* output result */
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#87>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU3ZDSRK2FYQJF4UWNAHZTRSWNLXANCNFSM4NHGIAUA>
.
|
I followed the instructions given by config.c and changed the generated mirdef.lst to mirdef.h. After that I didn't change anything. Any solutions? |
Ah, OK so you did change mirdef.h
That is the cause of the problem.
Copy mirdef.h64 to mirdef.h and try again
Mike
…On Fri, May 22, 2020 at 12:18 PM CaptainLazarus ***@***.***> wrote:
I followed the instructions given by config.c and changed the generated
mirdef.lst to mirdef.h. After that I didn't change anything. Any solutions?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#87 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU3ZDRIZ6OT5YK4ATUS2WLRSZNQBANCNFSM4NHGIAUA>
.
|
After you copy mirdef.h64 to mirdef.h, don't forget to rebuild the library.
Mike
On Fri, May 22, 2020 at 12:55 PM Michael Scott <mike.scott@miracl.com>
wrote:
… Ah, OK so you did change mirdef.h
That is the cause of the problem.
Copy mirdef.h64 to mirdef.h and try again
Mike
On Fri, May 22, 2020 at 12:18 PM CaptainLazarus ***@***.***>
wrote:
> I followed the instructions given by config.c and changed the generated
> mirdef.lst to mirdef.h. After that I didn't change anything. Any solutions?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#87 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAU3ZDRIZ6OT5YK4ATUS2WLRSZNQBANCNFSM4NHGIAUA>
> .
>
|
Seemed to work. Thanks :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After following all the instruction for installing miracl , I tried running the first sample program for testing and have gotten the following error.
MIRACL error from routine mirsys called from your program Base must be binary (MR_ALWAYS_BINARY defined in mirdef.h ?)
Any idea where I went wrong?
The sample program I'm talking about
The text was updated successfully, but these errors were encountered: