Re: Problem linking fortran code



On 24 Lip, 15:18, Tim Prince <timothypri...@xxxxxxxxxxxxx> wrote:
a-...@xxxxx wrote:
I have problem linking fortran code to c++. I'm using gcc version
2.8.1 the message I get is:

Undefined first referenced
symbol in file
log10l /opt/gcc_4.1.2/solaris10/lib/
libgfortran.a(write.o)
strtof /opt/gcc_4.1.2/solaris10/lib/
libgfortran.a(read.o)
strtold /opt/gcc_4.1.2/solaris10/lib/
libgfortran.a(read.o)
__assert_c99 /opt/gcc_4.1.2/solaris10/lib/
libgfortran.a(error.o)
ld: fatal: Symbol referencing errors. No output written to symsimp
gmake: *** [symsimp] Error 1

I was trying to link all the libraries I found but they apparently
doesn't contain the above functions.

Do you have any idea what to do?

gcc 4.1.2 is an up to date, fairly good version. 2.8.1 is an extremely
old buggy one, with no compatibility with later versions, and no Fortran
support. Wherever you got gfortran, it should include a compatible gcc.
Reasonable questions about gfortran could be asked on the gfortran
mailing list.


Thank you for your response.

Unfortunatelly I have to use version 2.8.1. because the newer versions
are unable to compile ARPACK++.




.



Relevant Pages

  • Re: Problem linking fortran code
    ... ld: fatal: Symbol referencing errors. ... No output written to symsimp ... it should include a compatible gcc. ... Reasonable questions about gfortran could be asked on the gfortran mailing list. ...
    (comp.lang.fortran)
  • Re: gfortran: OK, I quit, you win
    ... > gfortran working under Windows. ... let me explain a bit how the GCC and gfortran ... > only distributed as a source code package ready to be build on a Unix ...
    (comp.lang.fortran)
  • Re: Upgrading XP machine to run gcc
    ... The gfortran & gcc wiki pages were very helpful. ... After reviewing some gcc history, I am less confused about gfortran and f95. ... While I've been to the cygwin site, I'm not so clear on how it fits my ... waiting for Mingw to update to gcc 4.2.0, or installing cygwin or linux, or ...
    (comp.lang.fortran)
  • Installing R-3*gz
    ... checking for gcc... ... checking for C compiler default output file name... ... checking for gfortran... ... checking whether stripping libraries is possible... ...
    (Fedora)
  • Re: Announcement: GCC 4.6.0 / GCC at Google Summer of Code
    ... (The test cases in the test suite are - of course - written in in Fortran - with some C for BIND(C).) ... The main interest from our side (current gfortran developers) is of course to complete the missing Fortran 2003/2008 features, though as written adding run-time argument checking or similar non-F03/08 items are also useful. ... As Steve mentioned, there is a GSoC page at GCC, which I believe is up to date. ... gcc/fortran - the Fortran compiler ...
    (comp.lang.fortran)