On 30/08/2014, at 12:12 PM, Ryan wrote:

> BTW, I thought you could do:
> 
> $ flx -c --static -o myapp myapp.flx
> $ ./myapp

You can. However

        flx -c -od . myapp.flx

is better because it works on Windows too, there you get

        myapp.exe

instead of Unix

        myapp

You can also use 

        flx -c -ox myapp myapp.flx

which adds the .exe extension on windows automatically. 

Similarly, -ox can be used whether the target is an object file:

        .o on Unix
        .obj on Windows

or a shared lib:

        .so on Unix
        .dylib on OSX
        .dll on Windows


The -od option is most useful when batch compiling based on a regexp
and so you don't *know* the name of the file. So neither -o nor -ox will
work. But -od does work, because it only names te directory in which
to place the executable.

Look at test target in the make file. All the regression tests are run as
a single flx command.

All this is documented in detail. See

http://felix-lang.org/share/src/web/ref/tools.fdoc

http://felix-lang.org/share/src/web/ref/tools_flx_cli.fdoc

http://felix-lang.org/share/src/web/ref/tools_flx_separate_compilation_index.fdoc


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to