这个Gauss-Jacobi积分公式为何编译不了?
这是朋友给我用的程序,是计算Gauss-Jacobi积分公式的,但是VS2010下编译出错,那位高手帮忙看看什么问题。好像要用到gmp.h.谢谢大家。 1# lnszyd看了一下,准确的说,楼主需要的是PHG (Parallel Hierarchical Grid)
而PHG的编译 可以加入 GMP,但并不是必需的
=========================
另外,郑重说明一下,这个只能使用 MinGW 编译器! http://lsec.cc.ac.cn/phg/index.htm
看了一下 PHG 的手册,只能说这手册做的不够好。
=============================
我下载了源码, ./configure --help 查看,我就不给你编译了
Fine tuning of the installation directories:
--bindir=DIR user executables
--sbindir=DIR system admin executables
--libexecdir=DIR program executables
--sysconfdir=DIR read-only single-machine data
--sharedstatedir=DIR modifiable architecture-independent data
--localstatedir=DIR modifiable single-machine data
--libdir=DIR object code libraries
--includedir=DIR C header files
--oldincludedir=DIR C header files for non-gcc
--datarootdir=DIR read-only arch.-independent data root
--datadir=DIR read-only architecture-independent data
--infodir=DIR info documentation
--localedir=DIR locale-dependent data
--mandir=DIR man documentation
--docdir=DIR documentation root
--htmldir=DIR html documentation
--dvidir=DIR dvi documentation
--pdfdir=DIR pdf documentation
--psdir=DIR ps documentation
Optional Features:
--disable-option-checkingignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG]include FEATURE
--enable-shared build shared library libphg.so (default)
--disable-shared build static library libphg.a
--with-build-shared BUILD_SHARED command (default "\$CC -shared")
--enable-rpath enable use of rpath (default)
--disable-rpath disable use of rpath
--with-rpath-flag=FLAG compiler flag for rpath (e.g., "-Wl,-rpath,")
--enable-alltoallv-hack use phgAlltoallv (default)
--disable-alltoallv-hack use MPI_Alltoallv
--enable-realloc-hackenable realloc hack (default, required for MVAPICH2)
--disable-realloc-hack disable realloc hack
--enable-omp enable OpenMP (default)
--disable-omp disable OpenMP
--with-omp-flags=FLAGS compiler flags for OpenMP
--enable-omp-alloc-hackenable malloc/free OpenMP hack
--disable-omp-alloc-hack disable malloc/free OpenMP hack (default)
--enable-fpetrap enable trapping floating point exceptions (default)
--disable-fpetrap disable trapping floating point exceptions
--enable-long-double use long double for FLOAT
--disable-long-doubleuse double for FLOAT (default)
--enable-lagrange-dg DG bases on top of Lagrange bases (default)
--disable-lagrange-dgDG bases on top of hierarchical bases
--enable-gzip enable gzip support (default)
--disable-gzip disable gzip support
--with-gzip=PROG name of the gzip program
--enable-bzip2 enable bzip2 support (default)
--disable-bzip2 disable bzip2 support
--with-bzip2=PROG name of the bzip2 program
--enable-debug enable debugging codes (default)
--disable-debug disable debugging codes
--enable-tcl enable tcl support (default)
--disable-tcl disable tcl support
--with-tcl-config=FILE pathname of tclConfig.sh
--with-tcl-libdir=DIRpath for Tcl library (normally not needed)
--with-tcl-incdir=DIRpath for Tcl header file (normally not needed)
--enable-tk enable tk support (default)
--disable-tk disable tk support
--with-tk-config=FILEpathname of tkConfig.sh
--with-tk-libdir=DIR path for Tk library (normally not needed)
--with-tk-incdir=DIR path for Tk header file (normally not needed)
--enable-vtk enable VTK support (default)
--disable-vtk disable VTK support
--with-vtk-libdir=DIRpath for VTK library (normally not needed)
--with-vtk-incdir=DIRpath for VTK header file (normally not needed)
--enable-mpi enable MPI support (default)
--disable-mpi disable MPI support
--with-mpi-libdir=DIRpath for MPI libraries
--with-mpi-incdir=DIRpath for MPI header files
--with-mpi-lib=SPEC MPI libraries (default '-lmpi' or '-lmpich')
--enable-mpiio enable MPI I/O
--disable-mpiio disable MPI I/O (default)
--enable-solver enable solvers (default)
--disable-solver disable solvers
--enable-petsc enable PETSc solver
--disable-petsc disable PETSc solver
--enable-pardiso enable PARDISO solver (default)
--disable-pardiso disable PARDISO solver
--with-pardiso=LIB PARDISO librariess
--enable-metis enable METIS support (default)
--disable-metis disable METIS support
--with-metis-lib=LIB METIS libraries
--with-metis-incdir=DIR path for METIS header file
--enable-parmetis enable ParMETIS support (default)
--disable-parmetis disable ParMETIS support
--with-parmetis-lib=LIB ParMETIS libraries
--with-parmetis-incdir=DIR path for ParMETIS header file
--enable-spc enable SPC solver
--disable-spc disable SPC solver (default)
--enable-hypre enable hypre solver (default)
--disable-hypre disable hypre solver
--with-hypre-dir hypre installation dir
--with-hypre-libs hypre libs (default -lHYPRE)
--enable-trilinos enable Trilinos solver (default)
--disable-trilinos disable Trilinos solver
--with-trilinos-dir=DIR Trilinos installation directory
--enable-trilinos-anasazi enable Trilinos Anasazi eigen solver (default)
--disable-trilinos-anasazi disable Trilinos Anasazi eigen solver
--enable-zoltan enable Zoltan partitioners (default)
--disable-zoltan disable Zoltan partitioners
--with-zoltan-incdir=DIR Zoltan header files directory
--with-zoltan-libdir=DIR Zoltan libraries directory
--enable-superlu enable SuperLU solver (default)
--disable-superlu disable SuperLU solver
--with-superlu-incdir=DIR path of SuperLU header files
--with-superlu-lib=LIB SuperLU librariess
--enable-pastix enable PaStiX solver (default)
--disable-pastix disable PaStiX solver
--with-pastix-dir=DIRPaStiX installation directory
--with-pastix-incdir=DIR path for PaStiX header files
--with-pastix-libdir=DIR path for PaStiX libraries
--with-pastix-optlib=LIB optional libs (PT-Scotch, etc.) for PaStiX
--enable-mumps enable MUMPS solver (default)
--disable-mumps disable MUMPS solver
--with-mumps-dir=DIR MUMPS installation dir
--with-mumps-incdir=DIR path for MUMPS header files
--with-mumps-libdir=DIR path for MUMPS libraries
--with-mumps-optlib=LIB optional libs (ScaLAPACK, BLACS, etc.) for MUMPS
--with-mumps-lib=LIB MUMPS, ScaLAPACK, and BLACS libraries (obsolete)
--enable-spooles enable SPOOLES solver (default)
--disable-spooles disable SPOOLES solver
--with-spooles-incdir=DIR path of SPOOLES header files
--with-spooles-lib=LIB SPOOLES librariess
--enable-x9amg enable X9 AMG solvers (default)
--disable-x9amg disable X9 AMG solvers
--with-x9amg-incdir=DIR X9 AMG header directory
--with-x9amg-libdir=DIR X9 AMG lib directory
--enable-ssparse enable SuiteSparse solvers (default)
--disable-ssparse disable SuiteSparse solvers
--with-ssparse-incdir=DIR path to SuiteSparse header files
--with-ssparse-libdir=DIR path to SuiteSparse libs
--enable-laspack enable LASPack solver (default)
--disable-laspack disable LASPack solver
--enable-slepc enable SLEPc solver (default)
--disable-slepc disable SLEPc solver
--enable-papi enable PAPI support (default)
--disable-papi disable PAPI support
--with-papi-lib=LIB PAPI lib
--with-papi-incdir=DIR PAPI include dir
--enable-oski enable OSKI: Optimized Sparse Kernel Interface
--disable-oski disable OSKI (default)
--with-oski-dir=DIR OSKI installation prefix (default "/usr /usr/local")
--enable-matheval enable use of GNU libmatheval (default)
--disable-matheval disable use of GNU libmatheval
--enable-gmp enable use of GMP (default)
--disable-gmp disable use of GMP
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-f77-libs[=LIBs]Fortran 77 libs
--with-fc-libs[=LIBs] Fortran libs
--with-blas=LIB BLAS lib
--with-lapack=LIB LAPACK lib 你的这个朋友给你的东东都来自PHG库(Parallel Hierarchical Grid),看看思路罢,学习下相关理论自己写一个对你也不会有问题的。http://lsec.cc.ac.cn/phg/download.htm
简单的挑出几个函数很难编译成功,之间有千丝万缕的联系,要编译好PHG可能还要GMP,MPICH2等。 原来来自一个PHG库。谢谢各位,我再研究一下。
页:
[1]