This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Shared Libary
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Shared Libary
- From: "Ronald R. DiFrango" <difranr at zdnetonebox dot com>
- Date: Fri, 22 Jun 2001 19:04:47 -0400
- CC: bug-gcc at gnu dot org
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