Re: java math performance

From: John Davison (nospamplease_at_cinci-solutions.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 15:35:15 -0400

os2 wrote:

> i have some error with this command..
>
> tmp@linux:~/bench> gcc -I/usr/lib/j2sdk1.4.2_03
> -I/usr/lib/j2sdk1.4.2_03/include/linux Math.c -o MathLib.so
> /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crt1.o(.text+0x18): in
> function « _start »:
> ../sysdeps/i386/elf/start.S:98: undefined reference to `main'
> /tmp/cc8K7UyJ.o(.text+0x1c): in function « Java_MathLib_sin »:
> : undefined reference to `sin'
> /tmp/cc8K7UyJ.o(.text+0x41): in function « Java_MathLib_cos »:
> : undefined reference to `cos'
> /tmp/cc8K7UyJ.o(.text+0x66): in function « Java_MathLib_sqrt »:
> : undefined reference to `sqrt'
>
>
> how to resolve that?

This isn't really a Java question - try comp.lang.c
More than likely you are not supplying the correct flags to the gcc
compiler, or better yet, read up on gcc to see how to create .so files.

John Davison



Relevant Pages

  • Re: please answer
    ... option of gcc, I found something strange to me. ... correct support libraries to link against. ... Supplying them in cases where they are not necessary ... is used by several different executables simultanously (the MS ...
    (alt.linux)
  • please answer
    ... option of gcc, I found something strange to me. ... supplementary stub code for constructors to work. ... correct support libraries to link against. ... Supplying them in cases where they are not necessary ...
    (alt.linux)