Closed bjarthur closed 8 years ago
This is due to scoping of the module, when compiling the script. If you shall have the same experience in the REPL then you can only use the import
statment. See https://github.com/dhoegh/BuildExecutable.jl/blob/master/test/test.jl where JSON is imported. Even if changing the import to using the functions from the JSON package should still be qualified with JSON.
when using
@generated
in conjunction with@nloops
, i get anUndefVarError(symbol("@nloops"))
error when the built executable is run on the command line. the code runs fine when (a) either macro is used alone, or (b) the source is evaluated in the REPL. any ideas? see code below.this blog seems relevant, but i don't entirely understand it.