Now that I have the PGAS runtime for Mac, I'm getting this:

        delta:tests$ x10c++ -MAIN_CLASS=Test Test.x10 -commandlineonly
        x10c++: ld: library not found for -lrt
             collect2: ld returned 1 exit status
        x10c++: Non-zero return code: 1
        2 errors.

for the following class.

Can you tell me what might be wrong?

Jim

*****************

import x10.util.*;

public class Test {
        public static def main(args:Rail[String]){
                var b2: Rail[Int](6) = Rail.makeVar[Int](6,(i:Int)=>i*4);
                val n = 5;
                Console.OUT.println(" max("+b2(n)+",-5,-6) = " + 
max(b2(n),-5,-6));
                Console.OUT.println(" max(-4,"+b2(n)+",-6) = " + 
max(-4,b2(n),-6));
                Console.OUT.println(" max(4,5,"+b2(n)+") = " + max(4,5,b2(n)));
        }
        public static def max(a: Int, b: Int, c:Int): Int{
                val m = Math.max(a,b);
                return Math.max(m,c);
        }

        public static def max(a: Int, b: Int, c:Int, d:Int): Int{
                return Math.max(max(a, b, c), d);
        }
}

On 2 Nov 2009, at 5:57 PM, Igor Peshansky wrote:

> Jim LaGrone <[email protected]> wrote on 11/02/2009 06:13:56 PM:
>
>> The URL
>>
>>
> http://dist.codehaus.org/x10/binaryReleases/1.7.7/pgas-1.7.7_macos_x86.tgz
>>
>> seems to be empty.
>>
>> Let me know when this is corrected.
>
> Hi, Jim,
>
> Fixed.
>        Igor
> -- 
> Igor Peshansky  (note the spelling change!)
> IBM T.J. Watson Research Center
> XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
> X10: Parallel Productivity and Performance (http://x10.sf.net/)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to