At present, if you say flx fred flx --static fred
you will get a DLL/executable called fred.dll fred.exe in the directory containing the Felix file "fred". There is a bug: if fred.dll/exe exists it is run immediately, but without properly setting LD_LIBRARY_PATH. however there's a problem: if you run flx /usr/local/lib/felix/felix-latest/share/src/tools/webserver it will fail because it cannot write "webserver" into the shared tools directory. Felix caches the intermediate files in $HOME/.felix/cache/(text/binary) but not the final product. You can of course name the output location flx -ox $HOME/bin/webserver.exe ..... to work around this, but it destroys the convenient fiction Felix is a scripting language and can just "run script" with caching used to optimise performance (but not otherwise interfere with semantics). Note the option flx --output_dir= ... can be used to change the C++ output cache location, and the whole cache can be changed by flx --cache_dir but since a final product is not cached, this has no effect. SO ... I propose to change it so by default EVERYTHING is cached, including final executables. So by default running flx "like a scripting language" will not pollute any of the file system except the $HOME/.felix/cache. I will also add -od flags: the -ox means "add the extension automatically" and -od means "put the product in the named directory with the default name and extension". So you can do flx -od $HOME/bin long-path/websever.flx and that will "cache" the webserver in you home "bin" directory as "webserver" (i.e. without the "long-path"). [This is useful in scripts looping through program names, saves repeating the program name] -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language