undefined reference ?
alanlb at access.rrinc.com
alanlb at access.rrinc.com
Mon Jan 11 08:30:41 PST 1999
On Mon, 11 Jan 1999, Prashanth K.S. wrote:
| I have made changes at all places referring to "findInJar()"
| for ex: in "libraries/clib/native/ClassLoader.c"...
|
| The compilation goes through but i get "undefined reference ..." error
| during linking as shown below :
|
| --------
| gcc -g -O2 -Wall -Wstrict-prototypes -I. -I./../kaffevm -I../../config
| -I./../../config -I../../include -I./../../include -o Kaffe.exe main.o
| ./kaffevm/libkaffevm.a ../../libraries/clib/native/libnative.a
| ./../libraries/clib/net/libnet.a ../../libraries/clib/zip/libzip.a
| ./../libraries/clib/math/libmath.a ../../libraries/clib/management
| /libmanagement.a -lm
|
| ./../libraries/clib/native/libnative.a(ZipFile.o): In function
| `java_util_zip_ZipFile_openZipFile0':
| /kaffe/src/kaffe-1.0.b2/libraries/clib/native/ZipFile.c:31: undefined
| reference to `openJarFile'
| |
| +--------------->>>> Error
Try making libkaffevm.a the last library in the link line.
/Alan
More information about the kaffe
mailing list