【问题标题】:Syntax error caused by using different version of IDL使用不同版本的 IDL 导致的语法错误
【发布时间】:2018-04-13 02:09:35
【问题描述】:

我是 IDL 的新手。当我使用 IDL 版本 8 时,我的程序运行成功。但是,当我使用 IDL 7.1 版时,会出现如下所示的语法错误。

我该如何解决这个问题?

IDL> .com schwmodfirstiter_box.pro

   str +=pars[i].name+strn(p[i],format='('+pars[i].sformat+')')
                                       ^
  % Syntax error.
 At: /home/behzad/schwmodfirstiter_box.pro, Line 5
 % 1 Compilation error(s) in module SCHMAKEPARSTRING.

    str +=pars[i].name+strn(p[i],format='('+pars[i].sformat+')')
                                        ^
% Syntax error.
 At: /home/behzad/schwmodfirstiter_box.pro, Line 14
% 1 Compilation error(s) in module SCHMAKEPARSTRING0.

  mlstr=pars[0].name+strn(ml[k],format='('+pars[0].sformat+')')+'/'
                                    ^
       % Syntax error.
          At: /home/behzad/schwmodfirstiter_box.pro, Line 63
          % 1 Compilation error(s) in module SCHMAKEMODEL.
          % Compiled module: SUBMITORBLIB.
          % Compiled module: COMPILENNLS.
          % Compiled module: SCHWMODFIRSTITER.

IDL> % 遇到中断。

【问题讨论】:

标签: idl-programming-language


【解决方案1】:

strn.pro 不是 IDL 的一部分,但可能来自 https://idlastro.gsfc.nasa.gov/ftp/pro/misc/strn.pro

确保你的 !Path 中有这个过程并且可以编译它。

【讨论】:

  • 非常感谢您的回答,:) 我会做到的。
猜你喜欢
  • 2010-09-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-05-20
  • 1970-01-01
  • 1970-01-01
  • 2021-11-11
  • 1970-01-01
相关资源
最近更新 更多