Q] Link Error: How can I add libcygwin.a in command.

이동일 dilee at lge.com
Thu Feb 1 12:05:10 PST 2001


Hello.

I am a user of CygWin 1.1.8, and want to build the Kaffe.
But, I have met some problems during compiling the package.
I hacked some source files to build the Kaffe.
But, I met another link problem.
I captured the error message below.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
gcc -g -O2 -Wall -Wstrict-prototypes -o Kaffe.exe main.o version.o
.libs/Kaffe.exeS.o -Wl,--export-dynamic  -L/usr/local/lib
../../libraries/extensions/microsoft/clib/.libs/libmicrosoft.a
../../libraries/clib/security/.libs/libsecurity.a
../../libraries/clib/management/.libs/libmanagement.a
../../libraries/clib/math/.libs/libmath.a
../../libraries/clib/zip/.libs/libzip.a
../../libraries/clib/io/.libs/libio.a
../../libraries/clib/net/.libs/libnet.a
../../libraries/clib/native/.libs/libnative.a
../kaffevm/.libs/libkaffevm.a
../xprof/.libs/libkaffexprof.a -Wl,--rpath -Wl,/usr/local/lib
../kaffevm/.libs/libkaffevm.a(syscalls.o)(.text+0x5ff): undefined reference
to `
h_errno'
../kaffevm/.libs/libkaffevm.a(syscalls.o)(.text+0x657): undefined reference
to `
h_errno'
collect2: ld returned 1 exit status
rm -f .libs/Kaffe.exeS.o
make[2]: *** [Kaffe.exe] Error 1
make[2]: Leaving directory `/home/dilee/kaffe-1.0.6/kaffe/kaffe'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dilee/kaffe-1.0.6/kaffe'
make: *** [all-recursive] Error 1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The problem is from the referencing the variable, 'h_errno'.
I think the variable is in the /lib/libcygwin.a.
How can I add the libcygwin.a library to the previous compiling command?
If anyone can do, then let me know the solution.

Regards,

- David
--------------------------------------------------------------
  David Lee (Dong-Il Lee in Korean)
  Research Engineer, LG Electronics Inc.
     E-mail: dilee at lge.com
     URL   : http://www.lge.com/
     TEL.  : +82-2-526-4654
     FAX   : +82-2-571-1391
--------------------------------------------------------------



More information about the kaffe mailing list