This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Shared Libary


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]