gcj problems with helloworld
Nicholas Wourms
nwourms@yahoo.com
Mon Jul 22 15:36:00 GMT 2002
--- Sylvain Petreolle <spetreolle@yahoo.fr> wrote:
> Using gcj to compile a simple program gives non-understandable errors:
>
> $ cat PremierProgramme.java
> //Premier programme Java
> class PremierProgramme {
> public static void main (String[] arg) {
> System.out.println("Ca marche!");
> }
> }
>
> $ gcj -c PremierProgramme.java
> $ echo $?
> 0
> $ gcj PremierProgramme.java -o PremierProgramme
Sylvain,
Try:
gcj --main=PremierProgramme -o PremierProgramme PremierProgramme.java
Cheers,
Nicholas
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list