importing classes

David N. Welton davidw@linuxcare.com
Tue Jun 6 11:29:00 GMT 2000


[ please CC me in replies ]

This seems like a silly question, however I haven't been able to
resolve it after perusing the FAQ's and ML archives.

I have a file that includes the following:

import gnu.math.IntNum;
...
	IntNum in = new IntNum(12);
...

this .class file resides here:

/usr/local/share/java/gnu/math/IntNum.class

export CLASSPATH="/usr/local/share/java"
@eugene [~/test] $ gcj --main=Bar Bar.java 
/tmp/ccQaTQkU.o: In function `Bar::main(JArray<java::lang::String *>
*)':
/home/davidw/test/Bar.java(.text+0x99): undefined reference to
`_CL_Q33gnu4math6IntNum'
/home/davidw/test/Bar.java(.text+0xa9): undefined reference to
`gnu::math::IntNum::IntNum(int)'
collect2: ld returned 1 exit status

I have a feeling I'm "not getting it" in some way.  Would someone care
to enlighten me?
 
Thankyou,
-- 
David N. Welton, Responsabile Progetti Open Source, Linuxcare Italia spa
tel +39.049.8043411 fax +39.049.8043412 cel +39.348.2879508
davidw@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.


More information about the Java mailing list