unknown symbol %output_dir%
When i provide the optional parameter --output_dir
, gams complains about an unknown symbol with the message:
--- Starting compilation
--- Backbone.gms(111) 2 Mb 2 Errors
*** Error 140 in C:\code\backbone_tools\backbone\Backbone.gms[ERR:"C:\code\backbone_tools\backbone\Backbone.gms",111,16][LST:106]
Unknown symbol
*** Error 36 in C:\code\backbone_tools\backbone\Backbone.gms[ERR:"C:\code\backbone_tools\backbone\Backbone.gms",111,16][LST:106]
'=' or '..' or ':=' or '$=' operator expected
rest of statement ignored
regarding the line 111:
$if not dexist %output_dir% $call 'mkdir %output_dir%'
Upon removal of the "%" signs around the symbol, or by changing %output_dir%
to '%output_dir%'
(enclosing it as a string), the error disappears.
I'd be fine with either solution, but unsure about which one would be the preferred style.