avatar
Strange compiler error# Computation - 科学计算
b*n
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=-
avatar
l*n
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

avatar
b*n
3
找到错误了。呵呵。
原来这个程序是我直接从NR上抄来的,却编译通不过。原来是NR写错了。呵呵。
相关阅读
博士快结束, 工作请教朋友start-up公司招part-time software developerCS master/phd 兼职(时薪 25-30美金)想转行CS的同学应该去Programming版南加州附近 4月-6月之间有会议吗这个网站查出来的信息准确吗?hadoop能否替代high performance computing?提供Intel job referralJava opportunity长期求审稿机会PhD第三年 痛苦死了 求开导统计还是计算机????CCF Lead Web Developer opening有做网络安全科研的同学么,一个科研小项目,报酬1000刀cs辅导哪里有?出售 电脑、自行车、电钢琴、打印机、IKEA床、落地灯、书桌等等(SCI, 2017-5-31) Remote Sensing Big Data: Theory, Methods and Applications申请访问学者Master of science in information system NEU BoPhD student positions at <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="bffafafcecffead1d6c9dacdccd6cbc6">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script> of California, Merced
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。