1. How do i compile a file that uses a GUI.

I'm new to Euphoria and i have a file I would like to compile (it uses win32lib)
how do i compile it?
I read the page about using the translater but I couldn't make it work.

new topic     » topic index » view message » categorize

2. Re: How do i compile a file that uses a GUI.

curtis wrote:
> 
> I'm new to Euphoria and i have a file I would like to compile (it uses
> win32lib)
> how do i compile it? 
> I read the page about using the translater but I couldn't make it work.

My first question is about why you want to translate your program.  Is 
there really a speed issue that might be helped by translating to C?  If
not, you might be better off by just binding it.  This produces a
stand alone executable.  Open a command line wherever your program is, and:

 > bind myprogram.exw

It should create myprogram.exe

Now, assuming that you either need the speed, or you just want to learn 
how to translate, the first thing you need is a C compiler.  Since you're
on Windows, it doesn't come with one out of the box.  You need to install
one if you haven't already.  I'd recommend openwatcom:

http://www.openwatcom.org

It's a large download, but it's the original (well, a later version of)
compiler used for euphoria, and it's probably the easiest to set up.
Once you've done that, you should be ready to go.

Again, open a command prompt where your program is:

  > ecw myprogram.exw

It will create a bunch of .h and .c files, as well as one called emake.bat.
Just run emake.bat, and it will run all the necessary commands to create 
your executable.  I'm sure I'm just basically paraphrasing what the 
documentation says, so feel free to ask a more specific question.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: How do i compile a file that uses a GUI.

Matt Lewis wrote:
> 
> curtis wrote:
> > 
> > I'm new to Euphoria and i have a file I would like to compile (it uses
> > win32lib)
> > how do i compile it? 
> > I read the page about using the translater but I couldn't make it work.
> 
> My first question is about why you want to translate your program.  Is 
> there really a speed issue that might be helped by translating to C?  If
> not, you might be better off by just binding it.  This produces a
> stand alone executable.  Open a command line wherever your program is, and:
> 
>  > bind myprogram.exw
> 
> It should create myprogram.exe
> 
> Now, assuming that you either need the speed, or you just want to learn 
> how to translate, the first thing you need is a C compiler.  Since you're
> on Windows, it doesn't come with one out of the box.  You need to install
> one if you haven't already.  I'd recommend openwatcom:
> 
> <a href="http://www.openwatcom.org">http://www.openwatcom.org</a>
> 
> It's a large download, but it's the original (well, a later version of)
> compiler used for euphoria, and it's probably the easiest to set up.
> Once you've done that, you should be ready to go.
> 
> Again, open a command prompt where your program is:
> 
>   > ecw myprogram.exw
> 
> It will create a bunch of .h and .c files, as well as one called emake.bat.
> Just run emake.bat, and it will run all the necessary commands to create 
> your executable.  I'm sure I'm just basically paraphrasing what the 
> documentation says, so feel free to ask a more specific question.
> 
> Matt

Thanks Matt that answered my question. The reason I wanted to translate it was
because I thought it was
 the only way to make an exe file.I'll use bind instead.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu