Shared Libary
Ronald R. DiFrango
difranr@zdnetonebox.com
Fri Jun 22 16:04:00 GMT 2001
Folks,
As a preface, I am using GCC for the first time and I am trying to build
shared libraries for using in a Java application by utilizing the JNI
functionality.
So, what I am trying to build a shared libary on Sun OS 5.7 (Solaris
2.7) and I can not get the link step to work at all. I get the compile,
assemble step okay, but not the link. The commands I am using are:
Compile:
gcc HelloWorldImp.c -I/usr/local/java/include -/usr/local/java/include/solaris
-c
gcc HelloWorldImp.o -L/usr/local/java/jre/lib/sparc -ljvm -o libhello.so
-shared
Any help would be greatly appreciated!
--
Ronald DiFrango
difranr@zdnetonebox.com - email
(703) 234-3989 ext. 1091 - voicemail/fax
___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com
More information about the Gcc-bugs
mailing list