Message-Id: <199907250657.CAA17226@delorie.com> From: "Ted Mather" To: Subject: Re: Lib problems Date: Sun, 24 Jan 1999 05:59:24 -0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com You have to declare function called main in every c program to tell the it where to start. int main(void) { printf("Hello World"); } > c:/djgpp/lib/crt0.o(.dara+0xc2):crt0.s: undefined reference to 'main' > c:/djgpp/lib/libc.a(crt1.o(.text+0x446:crt1.c: undefined reference to 'main'