Message Boards Message Boards

GROUPS:

Connecting Mathematica and PariGP through WSTP

Posted 1 year ago
1958 Views
|
1 Reply
|
2 Total Likes
|

I want to use pari and gap functions in Mathematica through WSTP.

The wstp.h ( from WSTP ) header uses a Microsoft MSVC specific __int64 type. So I must use the Microsoft Compiler. The pari headers however are written for the gcc compiler. The same is true for Gap.

Any suggestions, ideas?

So I must use the Microsoft compiler

No, that is not necessary. Mingw has an appropriate definition for the __int64 type in the _mingw.h header file, which is included from a number of other standard headers. For example you could do

#include "stdint.h"
#include "wstp.h"
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract