Re: Linking error
From: Warner Bruns (bruns_at_tetibm3.ee.TU-Berlin.DE)
Date: 01/11/04
- Previous message: Christian Schmidt: "Linking error"
- In reply to: Christian Schmidt: "Linking error"
- Next in thread: Christian Schmidt: "Re: Linking error"
- Reply: Christian Schmidt: "Re: Linking error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Jan 2004 13:34:39 GMT
In article <btrgon$6oo$1@online.de>, Christian Schmidt
<christian.schmidt@ipc.uni-tuebingen.de> writes:
> 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
>
It looks as if your test.f does not contain a main program.
Is it possible that test.f only contains subroutines?
Warner Bruns
- Previous message: Christian Schmidt: "Linking error"
- In reply to: Christian Schmidt: "Linking error"
- Next in thread: Christian Schmidt: "Re: Linking error"
- Reply: Christian Schmidt: "Re: Linking error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|