Article View: gnu.gcc.help
Article #42010Undeclared reference to main?
From: Charles Nichols
Date: Sat, 27 Jan 1996 00:00
Date: Sat, 27 Jan 1996 00:00
7 lines
716 bytes
716 bytes
Whenever I try to compile a C program using a math.h function (abs, sqrt, etc) the compiler generates an "undeclared reference to main" message. The identical program compiles fine using Borland's Turbo C on the same computer (386sx). What does the message mean and why doesn't it compile? Charles Nichols
Technical Details
Message-ID:
<4edn1f$g5a@ixnews4.ix.netcom.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,16eff1441788ea25,start X-Google-Attributes: gid11318c,public From: cnichols@ix.netcom.com(Charles Nichols) Subject: Undeclared reference to main? Date: 1996/01/27 Message-ID: <4edn1f$g5a@ixnews4.ix.netcom.com> X-Deja-AN: 136791312 organization: Netcom x-netcom-date: Sat Jan 27 9:22:55 AM PST 1996 newsgroups: gnu.gcc.help