由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Strange compiler error
相关主题
Hamiltonian System有什么好的方法吗?mm is not real until explicitly declared
Analytic solution for an ODE随机数???
something strange in fortran90[转载] Re: Token pasting
求矩阵逆的算法fortran搞计算还是简单多了
Fortran 77 dynamic memory allocation 2Help! 有谁用过LSODE/LSODA?
请问用g77编译时如何限制'warning'的出现?有人用过matlab到fortran9*的翻译器matlab2fmex吗
Abaqus: error with dynamic loadingfortran90的超级怪问题
请大虾推荐一个fully implicit solver.[合集] 有关fortran返回数组的问题!
相关话题的讨论汇总
话题: ran1话题: idu话题: strange话题: compiler话题: gasdev
进入Computation版参与讨论
1 (共1页)
b**n
发帖数: 289
1
I try to generate Gaussian distribution random numbers using gasdev() which
references ran1(). But the compiler I use (ifort) gives me the following
error:
/tmp/ifortWvLH4w.o: In function `randomn_.gasdev_':
random.f90:(.text+0x359): undefined reference to `ran1_'
random.f90:(.text+0x36b): undefined reference to `ran1_'
So strange.
I attached the code. It looks a little bit strange below.
PROGRAM RANDOMN
IMPLICIT NONE
INTEGER :: idu=-10
REAL :: random
print *, ran1(idu),ran1(idu)
idu=-
l******n
发帖数: 9344
2
rand1没有

which

【在 b**n 的大作中提到】
: I try to generate Gaussian distribution random numbers using gasdev() which
: references ran1(). But the compiler I use (ifort) gives me the following
: error:
: /tmp/ifortWvLH4w.o: In function `randomn_.gasdev_':
: random.f90:(.text+0x359): undefined reference to `ran1_'
: random.f90:(.text+0x36b): undefined reference to `ran1_'
: So strange.
: I attached the code. It looks a little bit strange below.
: PROGRAM RANDOMN
: IMPLICIT NONE

b**n
发帖数: 289
3
找到错误了。呵呵。
原来这个程序是我直接从NR上抄来的,却编译通不过。原来是NR写错了。呵呵。
1 (共1页)
进入Computation版参与讨论
相关主题
[合集] 有关fortran返回数组的问题!Fortran 77 dynamic memory allocation 2
问个matlab问题请问用g77编译时如何限制'warning'的出现?
MATLAB with -nojvm optionAbaqus: error with dynamic loading
请教一个Monte Carlo simulation问题 (转载)请大虾推荐一个fully implicit solver.
Hamiltonian System有什么好的方法吗?mm is not real until explicitly declared
Analytic solution for an ODE随机数???
something strange in fortran90[转载] Re: Token pasting
求矩阵逆的算法fortran搞计算还是简单多了
相关话题的讨论汇总
话题: ran1话题: idu话题: strange话题: compiler话题: gasdev