Linking error

From: Christian Schmidt (
Date: 01/11/04

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


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
(.text+0x32): In function `main':
: undefined reference to `MAIN__'
collect2: ld returned 1 exit status

Any idea what I do wrong.