optima wrote:
> cc -G NativeHello.c NativeHelloImp.c -o libHello.so
> ,I encount a problum
> "cc: unrecognized option `-G'
> /usr/lib/crt1.o(.text+0x36): undefined reference to `main'"
> before I do this ,I had copy the include file of java/include into
> /usr/include ,and I copy the *.h in subdir of java/include also into
> /usr/include
> can anybody give me a good advice !
You need to add -shared to the command line to build a .so file. Otherwise it
assumes you're building an executable, which needs main().
Wes
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]