爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 2476|回复: 0

[混合编程] IDL批量编译的失败尝试

[复制链接]

新浪微博达人勋

发表于 2018-10-12 16:02:41 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
今天下午尝试用批处理来批量编译,
桌面上新建了个batch文件夹:
C:\Users\Administrator\Desktop\batch
随便写了2个函数f.pro,g.pro
新建了个txt,里面写:
.compile 'C:\Users\Administrator\Desktop\batch\f.pro'
.compile 'C:\Users\Administrator\Desktop\batch\g.pro'
------
------
pro linshi
cd,'C:\Users\Administrator\Desktop\batch'
cd,current=cur
print,cur
@batch
print,f(2)
print,g(6)
end

可惜提示语法错误:
.compile 'C:\Users\Administrator\Desktop\batch\f.pro'
% Syntax error.

但是在命令行就可以:
IDL> @batch
% Compiled module: F.
% Compiled module: G.


密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

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