This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcj darwin problem
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Brian McKay <brianmckay at sbcglobal dot net>
- Cc: gcc-bugs at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Fri, 30 Apr 2004 20:14:05 -0400
- Subject: Re: gcj darwin problem
- References: <9778C0F8-9AF5-11D8-B0EC-003065704E1E@sbcglobal.net>
On Apr 30, 2004, at 18:27, Brian McKay wrote:
when i try to compile a simple java program this is what i get:
[Brian-McKays-Computer:~/desktop] brianmck% gcj ColorSampler.java
/usr/bin/ld: warning multiple definitions of symbol _sqrt
/usr/local/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../
libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _sqrt
/usr/lib/libm.dylib(sqrt970.o) definition of _sqrt
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
[Brian-McKays-Computer:~/desktop] brianmck%
What does all this mean if i compile with the -C parameter (bytecode)
it compiles?
You forgot to add --main=ColorSampler (replace ColorSampler with your
main class).
Thanks,
Andrew Pinski