Yan CRL Li <liyan...@cn.ibm.com> wrote on 03/22/2010 11:44:22 PM: > Hello, > > I am a new x10 programer. I meet a problem when compiling multiple x10 > files. > > I fail to find an example which contains multiple .x10 files at current > samples directory. > > What should the Makefile look like? Simple examples are really appreciate.
There are two methods to compile multiple X10 files at once: One is to simply list all of the relevant files on the command line. Another is to use the -sourcepath option to specify the directories for source files, then give the compiler only one source file, and let it find all of the referenced X10 files automatically. For example, if your code looks like this: == x/A.x10 == public class A extends B { } == y/B.x10 == public class B { } Then you can run "x10c -sourcepath y x/A.x10" and it will also find and compile B.x10. Note that the -sourcepath option is unnecessary if the files are in the current directory (because "." is in the sourcepath by default). Hope this helps. Igor -- Igor Peshansky (note the spelling change!) IBM T.J. Watson Research Center X10: Parallel Productivity and Performance (http://x10-lang.org/) XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) "I hear and I forget. I see and I remember. I do and I understand" -- Confucius ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users