Linking error

From: Christian Schmidt (christian.schmidt_at_ipc.uni-tuebingen.de)
Date: 01/11/04


Date: Sun, 11 Jan 2004 13:49:28 +0100

Hi,

I'm trying to compile and link a Program using the Lapack Library.

I get the following Error:

christsc@fuchur Test $ g77 -c test.f
christsc@fuchur Test $ g77 -o test.o -lblas -llapack
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libfrtbegin.a(frtbegin.o
(.text+0x32): In function `main':
: undefined reference to `MAIN__'
collect2: ld returned 1 exit status

Any idea what I do wrong.

Thanks



Relevant Pages

  • Re: Posix fortran and the gnu toolchain
    ... collect2: ld returned 1 exit status ... So I deleted the libposix90.a that I had put in the same directory as the caller, which only left the one in the lib subdirectory. ... blev1.f90:: undefined reference to ...
    (comp.lang.fortran)
  • Re: Posix fortran and the gnu toolchain
    ... I was working with the CVS version which you can obtain ... blev1.f90:: undefined reference to ... collect2: ld returned 1 exit status ...
    (comp.lang.fortran)
  • Re: uudecode for Red Hat 9.0?
    ... > compile on Red Hat Linux. ... and they should compile fine ... ... /tmp/ccXtLHVa.o: undefined reference to `setmode' ... ld returned 1 exit status ...
    (comp.os.linux.misc)
  • Re: uudecode for Red Hat 9.0?
    ... > compile on Red Hat Linux. ... and they should compile fine ... ... /tmp/ccXtLHVa.o: undefined reference to `setmode' ... ld returned 1 exit status ...
    (comp.os.linux)
  • Re: I cant seem to use pow()
    ... : undefined reference to `pow' ... collect2: ld returned 1 exit status ...
    (comp.lang.c)