Haxe - Generation Exe (cpp)

I was tasked with downloading and installing FlashDevelop and it seems fine, but I don't know how to generate exe files when writing programs in Haxe. I'm trying to build or run a project in FlashDevelop but it just doesn't do anything. Can anyone advise me how to do this?

thank

+2


source to share


1 answer


CPP's goal is the world's youngest Haxe and therefore still a little rough around the edges; add more complexity because it depends on external tools to work properly.

With this assumption in place, try creating a new Haxe / CPP project in FlashDevelop, open the main class and add a simple line trace("hello world!");

. Press F5 to start the compilation and run process. You will see a "Build started ..." message in the status bar and you can follow the process by looking at the "Output Panel". If your environment is set up correctly, it will compile the entire project and open a DOS window where the generated executable will run (you can find it in the folder bin

).

If you receive an error, your environment is not yet ready to build CPP applications with Haxe. To fix this by following the installation instructions, you can find it here .



An easy alternative to create your own execubles (yes you can compile the same for Win / Mac / Linux), you can target neko to create a file .n

and nekotools to convert it to exe form. Just enter:

nekotools boot main.n

      

+1


source







All Articles