Re: Help linking f77 libraries into gfortran



This produces many errors similar to:

/cygdrive/c/Devel/MinGW/lib/libSLATEC.a(xersve.o):xersve.f:(.text+0x206):
undefined reference to `_s_copy'

If you're linking to a static library (like your libSLATEC.a) you need to
also link in the libraries that it depends on: in your case, I think
you'd need to add a libg2c.a library to your linker command.

--
FX
.



Relevant Pages

  • Re: How to identify required libraries
    ... trouble identifying what libraries I need to link against. ... ++.a lib would work but I received a stream of errors. ... : undefined reference to `strlen' ... An example would be writing an app that uses sockets and threading. ...
    (comp.os.linux.development.apps)
  • Re: How to identify required libraries
    ... trouble identifying what libraries I need to link against. ... ++.a lib would work but I received a stream of errors. ... : undefined reference to `strlen' ... An example would be writing an app that uses sockets and threading. ...
    (comp.os.linux.development.apps)
  • Re: How to identify required libraries
    ... trouble identifying what libraries I need to link against. ... : undefined reference to `strlen' ... An example would be writing an app that uses sockets and threading. ... me everything that was "sucked in" to compile and link. ...
    (comp.os.linux.development.apps)
  • Re: How to identify required libraries
    ... trouble identifying what libraries I need to link against. ... : undefined reference to `strlen' ... Please do not use ld directly, use the C/C++ compiler driver instead, ... tauno voipio iki fi ...
    (comp.os.linux.development.apps)
  • Re: using dot_product from c++ II
    ... libraries to be linked in, so it's easier to always link with g++ when ... undefined reference to `_WinMain@16' ... has a Fortran main and you don't use gfortran as linker command, ... What was the error message? ...
    (comp.lang.fortran)