Page 1 of 1

Compiling and Distribution

PostPosted: Fri Feb 18, 2011 9:27 am
by taylorzr
At my home, I have cobra installed. I can compile and run my program without issue. But at work I don't have cobra installed. I get an error that Cobra.Lang is missing when I'm running the exe that was compiled from home.

So, if I include Cobra.lang.dll in the program directory, the program runs. Is this abnormal? When distrubting a cobra application, do you need to include this file Cobra.lang.dll?

Alternatively, is there a way to compile multiple files into one exe. Say I had program.cobra & library.dll -> program.exe? Or would I do this with separate packager after the compilation?

Re: Compiling and Distribution

PostPosted: Fri Feb 18, 2011 2:23 pm
by torial
I believe you want to compile your app w/ the -ert switch (Embed run-time). It will put same logic in your app as the Cobra.Lang.dll.

http://cobra-language.com/trac/cobra/wiki/CommandLine

Re: Compiling and Distribution

PostPosted: Fri Feb 18, 2011 3:07 pm
by taylorzr
That's exactly what I needed.
It looks like that documentation is still "todo" on the wiki. Maybe I can contribute.
It is in the help on the command line though. I missed it there too.

Thanks much!