From owner-freebsd-questions Tue Oct 30 10:42:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdsl-216-36-101-146.dsl.chi.megapath.net (sdsl-216-36-101-146.dsl.chi.megapath.net [216.36.101.146]) by hub.freebsd.org (Postfix) with SMTP id 8513C37B407 for ; Tue, 30 Oct 2001 10:42:44 -0800 (PST) Received: (qmail 58577 invoked from network); 30 Oct 2001 18:43:02 -0000 Received: from apu.five.sight (HELO apu.five.sight.fivesight.com) (lucas@192.168.0.102) by wiggum.five.sight with SMTP; 30 Oct 2001 18:43:02 -0000 From: Lucas Bergman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15326.62645.612462.858576@apu.five.sight> Date: Tue, 30 Oct 2001 12:43:01 -0600 To: Cliff Sarginson Cc: questions@freebsd.org Subject: Re: Question In-Reply-To: <20011030192546.B1191@raggedclown.net> References: <3BDE7140.E1DA5ABB@in.ceeyes.com> <3BDEC1EE.672DCC9@bigstudios.com> <15326.53671.687708.44817@apu.five.sight> <20011030175306.A6302@raggedclown.net> <15326.58577.644116.716803@apu.five.sight> <20011030192546.B1191@raggedclown.net> X-Mailer: VM 6.96 under Emacs 20.7.2 Reply-To: lucas@fivesight.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Cliff Sarginson wrote: > Lucas Bergman wrote: > > Cliff Sarginson wrote: > > > Mmm, close, but not quite a cigar. The undefined reference > > > could be because of a missing macro definition, which may be > > > included in an include file. > > > > I believe as long as you're using a C compiler that you would > > probably get a diagnostic, but not an error, since having > > functions undeclared and unprototyped is perfectly legal C, if > > arguably bad style. > > The point is that the complaint from "ld" is caused by an undefined > reference, without a prototype the compiler could not care less, the > assumption being that the reference will be fixed up in ld with > whatever libraries or other object files linked in. Ah. I thought you meant that the compiler would complain. You are, of course, correct. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message