f2c and libf2c.a

mendes@mgconecta.com.br mendes@mgconecta.com.br
Wed Feb 3 07:54:00 GMT 1999


Hi everybody
    I am having a little problem with gcc and make stuff
when compiling
fortran-translated-to-C files (using f2c from netlib). Gcc created
libf2c.a
just it did in my Sun workstation but the problem is when I try to
compile my main fortran-translated-to-C file.
The system sent me the following msgs:
 

libf2c.a(iio.o)(.text+0x35): undefined reference to `__errno'
  libf2c.a(iio.o)(.text+0x160): undefined reference to `__errno'
  libf2c.a(iio.o)(.text+0x413): undefined reference to `__errno'
  libf2c.a(wsle.o)(.text+0x90): undefined reference to `__errno'
  libf2c.a(wsle.o)(.text+0x97): undefined reference to `__errno'
  libf2c.a(wsle.o)(.text+0xa7): more undefined references to `__errno' follow
  libf2c.a(fmt.o)(.text+0x92): undefined reference to `_impure_ptr'
  libf2c.a(fmt.o)(.text+0xd83): undefined reference to `_impure_ptr'
  libf2c.a(fmt.o)(.text+0xd9e): undefined reference to `__errno'
  libf2c.a(fmt.o)(.text+0xe4f): undefined reference to `__errno'


It seems that some libraries are missing.  Does anybody have any
idea of what is
wrong?
Many thanks
Eduardo
PS. When I try the same in the SUN everything goes fine.
 



More information about the Cygwin mailing list