Forums

Compiling and Distribution

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Compiling and Distribution

Postby taylorzr » Fri Feb 18, 2011 9:27 am

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?
taylorzr
 
Posts: 6

Re: Compiling and Distribution

Postby torial » Fri Feb 18, 2011 2:23 pm

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
torial
 
Posts: 229
Location: IA

Re: Compiling and Distribution

Postby taylorzr » Fri Feb 18, 2011 3:07 pm

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!
taylorzr
 
Posts: 6


Return to Discussion

Who is online

Users browsing this forum: No registered users and 47 guests