gcj problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wesley Parish

    gcj problem

    Hi. I've got a problem with gcj - as follows:

    [wparish@localho st scratch-files]$ gcj -o hello hello.java
    /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../crt1.o(.text+0x 18):
    In function `_start':
    : undefined reference to `main'
    collect2: ld returned 1 exit status

    Anyone got any advice on this? I sure could use it.

    Thanks.

    Wesley Parish

    --
    First the wife, tone of awe. So much a condition. Kent in the labs, fast
    forward. "So how was the worthlessful businessman?" But they hadn't
    stopped meat for year ago, that arose hotel facade slowly moved apper.
    - Don't let emacs meta-x dissociatedpres s write your speeches!
  • Jørgen NøNorgaard

    #2
    Re: gcj problem

    Wesley Parish wrote:
    [color=blue]
    >Hi. I've got a problem with gcj - as follows:
    >
    >[wparish@localho st scratch-files]$ gcj -o hello hello.java
    >/usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../crt1.o(.text+0x 18):
    >In function `_start':
    >: undefined reference to `main'
    >collect2: ld returned 1 exit status
    >
    >Anyone got any advice on this? I sure could use it.
    >
    >
    >[/color]

    Specify you main class, something like:

    gcj -o hello --main=hello hello.java


    [color=blue]
    >Thanks.
    >
    >Wesley Parish
    >
    >
    >[/color]

    Comment

    • Wesley Parish

      #3
      Re: gcj problem

      Jørgen NøNorgaard wrote:
      [color=blue]
      > Wesley Parish wrote:
      >[color=green]
      >>Hi. I've got a problem with gcj - as follows:
      >>
      >>[wparish@localho st scratch-files]$ gcj -o hello hello.java
      >>/usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/../../../crt1.o(.text+0x 18):
      >>In function `_start':
      >>: undefined reference to `main'
      >>collect2: ld returned 1 exit status
      >>
      >>Anyone got any advice on this? I sure could use it.
      >>
      >>
      >>[/color]
      >
      > Specify you main class, something like:
      >
      > gcj -o hello --main=hello hello.java[/color]

      I got it, thanks heaps!!! :)[color=blue]
      >
      >
      >[color=green]
      >>Thanks.
      >>
      >>Wesley Parish
      >>
      >>
      >>[/color][/color]

      --
      First the wife, tone of awe. So much a condition. Kent in the labs, fast
      forward. "So how was the worthlessful businessman?" But they hadn't
      stopped meat for year ago, that arose hotel facade slowly moved apper.
      - Don't let emacs meta-x dissociatedpres s write your speeches!

      Comment

      Working...