This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj link


On Mon, 2003-04-07 at 12:36, Steve Ni wrote:
> Hi, a basic question, what's mean of this sentence:
> 
> gcj --main=my -o mypgm.exe mypgm.o swt.so
> NOTICE: swt is ".so"  but not ".a" or ".o". It means swt.so is a dynamic
> link library( when compile swt.so, use -shared option)
> 

Naming convention for a shared library swt on linux is :

libswt.so

and on windows :

swt.dll

and your link command should look like this :

gcj --main=my -o mypgm.exe mypgm.o -L. -lswt

-L. is where libswt.so/swt.dll is located, here just .


/Lars Andersen





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