Sparsh Mittal <sparsh0mit...@gmail.com> wrote on 02/12/2013 05:19:41 PM:

>
> Hello
> I downloaded x10. I am not able to use C++ backend, although Java
> backend runs fine. Since I am programming for getting performance, I
> do want to get C++. Here is the error on running HelloWorld.x10:
>
> $ ~/Downloads/bin/x10c++ -o HelloWorld HelloWorld.x10
> x10c++: ~/Downloads/stdlib/lib/libx10.so: undefined reference to
> `std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char> >
> (std::basic_ostream<char, std::char_traits<char> >&, char const*,
> long)@GLIBCXX_3.4.9'
>      collect2: ld returned 1 exit status
> x10c++: Non-zero return code: 1
> 2 errors.

My guess would be that you have a different version of glibc and/or g++ on
your machine than we have on the build machine. We're building on an RHEL 6
system (g++ 4.4).

One possibility would be to build X10 from source instead of relying on the
version you downloaded (instructions here:
http://www.x10-lang.org/x10-development/building-x10-from-source.html).
The other possibility would be to get compatabile versions of libc, etc on
your system.

--dave
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to