简体   繁体   English

对C使用PARI库

[英]Using PARI library for C

I've got all the source code for PARI, but i'm not sure how to use it/generate the pari library. 我已经获得了PARI的所有源代码,但是我不确定如何使用它/生成pari库。 Up to now, i've had to add a couple header files for things such as complex numbers using #include <complex.h> , so I figure it is the same idea for using PARI. 到目前为止,我不得不使用#include <complex.h>为复杂的数字添加一些头文件,因此我认为使用PARI的想法是相同的。

I add pari.h's path in my compiler and #include <pari.h> works, but creates a massive list of other errors including mostly "expected ')' before numeric constant" inside of paricfg.h . 我想补充pari.h的路径在我的编译器和#include <pari.h>的作品,但造成其他错误,包括主要的大规模名单“预计‘)’数字常量之前”内部paricfg.h

I'm definitely doing it wrong. 我肯定做错了。 I know there's some semi-automated way to create a library file to import in using linux commands, but i'm using windows, and i'm not sure I can run the necessary files via cmd. 我知道有一些半自动化的方法来创建要使用linux命令导入的库文件,但是我使用的是Windows,而且我不确定是否可以通过cmd运行所需的文件。

How can i utilize PARI? 如何使用PARI?

Did you build the library before trying to use it? 您在尝试使用该库之前是否已建立它? If you didn't, take a look at the INSTALL file or one of the README files. 如果没有,请查看INSTALL文件或README文件之一。

To be able to build this type of library on Windows you'll need either MinGW or Cygwin . 为了能够在Windows上构建这种类型的库,您需要使用MinGWCygwin Although after a quick look at the README.WIN file, MinGW seems to be out of the question. 尽管快速浏览了README.WIN文件后,MinGW似乎没有问题。 You might also want to consider installing a Linux distro in a VM and using that to build and run your application. 您可能还需要考虑在VM中安装Linux发行版,然后使用它来构建和运行您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM