"TAJCHMAN Marc" <marc.tajch...@cea.fr> wrote on 09/10/2009 06:46:36 PM:
> Hi, > > Can you tell me how to compile my x10 code (C++ backend) using > separate generation/compile/link steps ? > > If I type : > > x10c++ my_test.x10 > > a binary code (a.out) is produced and can be succesfully run (using > manager/launcher) > > If I use the following commands : > > 1> x10c++ -commandlineonly -c my_test.x10 > 2> g++ -c -I. -I/opt/x10/include my_test.cc > 3> g++ my_test.o -L/opt/x10/lib -lx10 -lgc -lupcrts_sockets -lpthread > -lrt -ldl -o my_test > > compilation/link phases succeed, but when running the my_test code, > there is a runtime error (segmentation fault error). > > I used X10 v 1.7.6 on a 32bits Ubuntu 9.04 (pgas-1.7.6_linux_x86.tgz, > x10-1.7.6_linux_x86.tgz downloaded from the web site) > > I guess that I wrongly selected some of the libraries in the linking > command (line 3 above) ? Marc, You can give the option "-report postcompile=1" to x10c++, and it will print out the exact g++ command it uses to build a.out on your system. 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/) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users