Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 626FD476912 for ; Wed, 11 Dec 2002 09:10:21 -0500 (EST) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by postgresql.org (Postfix) with ESMTP id 0622947690C for ; Wed, 11 Dec 2002 09:05:34 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 18M7UW-0007JJ-0U; Wed, 11 Dec 2002 14:05:37 +0000 Received: from localhost ([127.0.0.1] ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18M7UU-0006mH-00; Wed, 11 Dec 2002 14:05:34 +0000 Subject: Re: problem compiling c-functions From: Oliver Elphick To: Aravind Babu Guntha Cc: pgsql-admin@postgresql.org In-Reply-To: <3DF5FDE5.EB89D6CD@informatik.uni-freiburg.de> References: <3DF5FDE5.EB89D6CD@informatik.uni-freiburg.de> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1039615533.25508.1.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 11 Dec 2002 14:05:34 +0000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/150 X-Sequence-Number: 6645 On Tue, 2002-12-10 at 14:44, Aravind Babu Guntha wrote: > i am trying to compile the below c-program.but iam getting the errors as > > /usr/lib/crt1.o(.text+0x18): In function `_start': > : undefined reference to `main' > collect2: ld returned 1 exit status You need to show us the command line you are using to compile it. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "The spirit of the Lord GOD is upon me; because the LORD hath anointed me to preach good tidings unto the meek; he hath sent me to bind up the brokenhearted, to proclaim liberty to the captives, and the opening of the prison to them that are bound." Isaiah 61:1