Igor Peshansky a écrit : > "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 > It works !! I used correct libraries, but forgot several compilation and linking options
Thanks a lot -- Marc Tajchman E-mail : marc.tajch...@cea.fr Tel. : 01 69 08 73 27 Fax. : 01 69 08 10 87 DEN/DM2S/SFME/LGLS CEA Saclay, 91191 Gif/Yvette Ce message électronique et tous les fichiers attachés qu'il contient sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci d'en avertir immédiatement son émetteur et de ne pas en conserver de copie. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual to whom they are addressed. If you have received this e-mail in error please inform the sender immediately, without keeping any copy thereof. ------------------------------------------------------------------------------ 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