找回密码
 欢迎注册
查看: 32910|回复: 4

[求助] 这个Gauss-Jacobi积分公式为何编译不了?

[复制链接]
发表于 2011-2-26 00:26:25 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?欢迎注册

×
这是朋友给我用的程序,是计算Gauss-Jacobi积分公式的,但是VS2010下编译出错,那位高手帮忙看看什么问题。好像要用到gmp.h.谢谢大家。

Jacobi-Gauss数值积分程序.rar

44.8 KB, 下载次数: 15, 下载积分: 金币 -1 枚, 经验 1 点, 下载 1 次

毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2011-2-26 08:22:41 | 显示全部楼层
1# lnszyd 看了一下,准确的说,楼主需要的是 PHG (Parallel Hierarchical Grid) 而PHG的编译 可以加入 GMP,但并不是必需的 ========================= 另外,郑重说明一下,这个只能使用 MinGW 编译器!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2011-2-26 08:37:31 | 显示全部楼层
http://lsec.cc.ac.cn/phg/index.htm 看了一下 PHG 的手册,只能说这手册做的不够好。 ============================= 我下载了源码, ./configure --help 查看,我就不给你编译了
Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --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-hack enable 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-hack enable 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-double use double for FLOAT (default) --enable-lagrange-dg DG bases on top of Lagrange bases (default) --disable-lagrange-dg DG 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=DIR path for Tcl library (normally not needed) --with-tcl-incdir=DIR path for Tcl header file (normally not needed) --enable-tk enable tk support (default) --disable-tk disable tk support --with-tk-config=FILE pathname 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=DIR path for VTK library (normally not needed) --with-vtk-incdir=DIR path for VTK header file (normally not needed) --enable-mpi enable MPI support (default) --disable-mpi disable MPI support --with-mpi-libdir=DIR path for MPI libraries --with-mpi-incdir=DIR path 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=DIR PaStiX 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 [ARG=yes] --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
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2011-2-26 14:39:10 | 显示全部楼层
你的这个朋友给你的东东都来自PHG库(Parallel Hierarchical Grid),看看思路罢,学习下相关理论自己写一个对你也不会有问题的。http://lsec.cc.ac.cn/phg/download.htm 简单的挑出几个函数很难编译成功,之间有千丝万缕的联系,要编译好PHG可能还要GMP,MPICH2等。
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2011-2-28 04:14:10 | 显示全部楼层
原来来自一个PHG库。谢谢各位,我再研究一下。
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2025-1-23 20:24 , Processed in 0.026520 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表