On Mon, 4 Aug 2008, [EMAIL PROTECTED] wrote:
Do you have  a sample of your Makefile?
gcj --main=Hssf --classpath=poi-2.0-final-20040126.jar Hssf.java

Firstly, you're using a version of poi that's over 4 years old, so you should probably get a newer one first!

Secondly, specifying --classpath=<poi.jar> isn't enough for gcj to work. That'll get your through the .java -> .o stage, but not the linking step. You'll need to get gcj to produce a .so from the poi jar first, then use that. That in turn needs a .so for commons-logging, but that might well be provided by your package manager

The steps should be something like:
  gcj -shared -classpath ../jakarta-poi/lib/commons-logging-1.1.jar
  -Lcommons-logging-1.1.jar.so
  ../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar -o
  poi-3.2-alpha1-20080804.jar.so

  gcj --classpath=../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar
  -c HW.java

  gcj --main=HW -Lpoi-3.2-alpha1-20080804.jar.so HW.o -o HW

You might have more luck on the gcj list though, as I'm not a gcj user normally, and I'm not sure if there are any about here

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to