Hi Danny - are you sure you're using 2.3.1?  It appears that you're using
the trunk, which is currently undergoing changes to Array & Rail, including
in the signature of the main method.

Trunk is at:  https://x10.svn.sourceforge.net/svnroot/x10/trunk/

2.3.1 is available from SVN at
https://x10.svn.sourceforge.net/svnroot/x10/tags/SF_RELEASE_2_3_1/


   - Ben



From:   Danny Munera <dannymun...@gmail.com>
To:     x10-users@lists.sourceforge.net,
Date:   03/07/2013 04:53 PM
Subject:        [X10-users] Error compiling after update 2.3.1




Danny Múnera
Hello all,

I have problems to compile any program just after the upgraded and compile
the new x10 2.3.1 version by svn.

When I try to compile a program with c++ back-end I get a error message :

x10c++: No main method found
1 error.

This is an example with the HelloWold in verbose mode:

x10c++ -v  HelloWorld.x10
"/usr/lib/jvm/jdk1.7.0/bin/java" -Xmx1024m -Dfile.encoding=UTF-8
-Dx10.dist="/home/danny/Appz/x10/x10-trunk/x10.dist"
-Dx10c.ecj.jar="ecj.jar" -Dx10c.math.jar="commons-math3-3.0.jar"
-classpath
"/home/danny/Appz/x10/x10-trunk/x10.dist/lib/x10c.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/lpg.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/com.ibm.wala.cast.java_1.0.0.201101071300.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/com.ibm.wala.cast_1.0.0.201101071300.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/com.ibm.wala.core_1.1.3.201101071300.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/com.ibm.wala.shrike_1.3.1.201101071300.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/x10wala.jar:/home/danny/Appz/x10/x10-trunk/x10.dist/lib/org.eclipse.equinox.common_3.6.0.v20100503.jar"
  polyglot.main.Main -extclass x10cuda.ExtensionInfo
-x10lib /home/danny/Appz/x10/x10-trunk/x10.dist/stdlib/libx10.properties
'HelloWorld.x10' '-define' '__CPP__'
x10c++: No main method found
1 error.

Can you give some hints to find the source of the problem?

Thanks in advance!!!

Regards,
--
Danny Munera
Ph.D. Student
Université Paris 1
Pantheon-Sorbonne

------------------------------------------------------------------------------

Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

<<inline: graycol.gif>>

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to