From owner-freebsd-questions Thu Aug 16 17:43:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 58ACF37B40A for ; Thu, 16 Aug 2001 17:43:45 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id DFF366ACC1; Fri, 17 Aug 2001 10:13:43 +0930 (CST) Date: Fri, 17 Aug 2001 10:13:43 +0930 From: Greg Lehey To: Wing Tim Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Programming Problem II Message-ID: <20010817101343.B50416@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from twchim1@hotmail.com on Thu, Aug 16, 2001 at 08:43:12PM +0800 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF 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 On Thursday, 16 August 2001 at 20:43:12 +0800, Wing Tim wrote: > Hi, > I have a program "s.c" (as attached). > > > [-- Attachment #2: s.zip --] > [-- Type: application/x-zip-compressed, Encoding: base64, Size: 29K --] > > [-- application/x-zip-compressed is unsupported (use 'v' to view this part) --] I doubt that many people will go to the trouble to extract this file. If you use a non-mutilating MUA (and there's no other evidence that you don't), you can just attach the file. I placed it in the root and tried > to compile it using "gcc s.c". However, I got lots of errors as follows: > # gcc s.c > s.c:295: syntax error before `int' Without looking at the source, I'd guess that the word before int is a typedef of some kind, and you haven't included the header file in which it's defined. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message