Yeah, I should have mentioned that. The main method has to be a Terra 
function, not a Lua function.

In addition, you sent that directly to me, not to the list.

On Tuesday, December 6, 2016 1:51:54 PM EST you wrote:
> the lua api is from the perspective of a compiler, not a program, so saving
> your binary is a method call (specifying the terra methods to
> include/expose)
> http://terralang.org/api.html#saving-terra-code
> 
> On Tue, Dec 6, 2016 at 1:48 PM, <[email protected]> wrote:
> > Just like it shows on the website, after you define a main function, you’d
> > call
> > 
> > terralib.saveobj("MyExecutable",{ main = myMain })
> > 
> > On Tuesday, December 6, 2016 3:48:07 PM EST Will Rubin wrote:
> > > I can get the samples to work in the REPL, for example. But how do I
> > > turn that into an executable? The guide says "... or even compiled to an
> > > executable directly." But I couldn't figure out how to directly create
> > > the stand alone Windows executable.
> > > 
> > > --Will
> > > 
> > > On 12/6/2016 3:38 PM, [email protected] wrote:
> > > > Will, what you want already exists! Open a terminal/command prompt and
> > 
> > run
> > 
> > > > `terra`.
> > > > 
> > > > On Tuesday, December 6, 2016 3:39:06 PM EST Will Rubin wrote:
> > > >> If possible, I also would like to see an example of how to create a
> > > >> stand-alone executable that includes the Lua interpreter. For
> > > >> example,
> > > >> the executable could start up and say "Hi from Terra" (from Terrra)
> > 
> > and
> > 
> > > >> "Hi from Lua" (from "regular" Lua) without using C or LuaJIT. I
> > 
> > couldn't
> > 
> > > >> find an example like this on the Terra site but from the wording
> > > >> there
> > > >> thought it might be possible.
> > > >> 
> > > >> --Will
> > > >> 
> > > >> On 12/6/2016 2:48 PM, [email protected] wrote:
> > > >>> On Tuesday, December 6, 2016 11:19:11 AM EST Tyler Brough wrote:
> > > >>>> I am very excited to get started using Lua-Terra for my research in
> > > >>>> finance. While I know some programming, I am by no means a computer
> > > >>>> scientist. I am wondering if you can help install and compile a
> > 
> > "hello
> > 
> > > >>>> world" application. I am working on both Windows 10 and Ubuntu
> > 
> > linux.
> > 
> > > >>>> I really appreciate your guidance!
> > > >>>> 
> > > >>>> TJB
> > > >>> 
> > > >>> Have you ever used Lua in the past? If so, “Hello world” with Terra
> > 
> > is
> > 
> > > >>> very
> > > >>> similar. Would you like to just run your scripts with the `terra`
> > > >>> command
> > > >>> line program, or would you like to make a standalone program? Both
> > 
> > are
> > 
> > > >>> possible , and very easy, with Terra.
> > > >> 
> > > >> _______________________________________________
> > > >> terralang mailing list
> > > >> [email protected]
> > > >> https://mailman.stanford.edu/mailman/listinfo/terralang
> > > 
> > > _______________________________________________
> > > terralang mailing list
> > > [email protected]
> > > https://mailman.stanford.edu/mailman/listinfo/terralang
> > 
> > --
> > John M. Harris, Jr.
> > OpenBlox
> > https://openblox.org/
> > _______________________________________________
> > terralang mailing list
> > [email protected]
> > https://mailman.stanford.edu/mailman/listinfo/terralang


-- 
John M. Harris, Jr.
OpenBlox
https://openblox.org/
_______________________________________________
terralang mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/terralang

Reply via email to