Re: java math performance
From: John Davison (nospamplease_at_cinci-solutions.com)
Date: 10/13/04
- Next message: Paul Lutus: "Re: best approach to generate random number in java"
- Previous message: John Davison: "Re: toString equivalent for array"
- In reply to: os2: "java math performance"
- Next in thread: Carl Howells: "Re: java math performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Paul Lutus: "Re: best approach to generate random number in java"
- Previous message: John Davison: "Re: toString equivalent for array"
- In reply to: os2: "java math performance"
- Next in thread: Carl Howells: "Re: java math performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|