From owner-freebsd-chat Fri Nov 8 11:28:21 2002 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A714937B401; Fri, 8 Nov 2002 11:28:20 -0800 (PST) Received: from colnta.acns.ab.ca (mail.acns.ab.ca [142.179.151.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id D093F43E3B; Fri, 8 Nov 2002 11:28:19 -0800 (PST) (envelope-from davidc@colnta.acns.ab.ca) Received: from colnta.acns.ab.ca (localhost [127.0.0.1]) by colnta.acns.ab.ca (8.12.6/8.12.6) with ESMTP id gA8JQ6FG070399; Fri, 8 Nov 2002 12:26:06 -0700 (MST) (envelope-from davidc@colnta.acns.ab.ca) Received: (from davidc@localhost) by colnta.acns.ab.ca (8.12.6/8.12.6/Submit) id gA8JQ63o070398; Fri, 8 Nov 2002 12:26:06 -0700 (MST) Date: Fri, 8 Nov 2002 12:26:06 -0700 From: Chad David To: Jonathon McKitrick Cc: freebsd-chat@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: Unresolved reference compiling Objective-C ?? Message-ID: <20021108192606.GA70330@colnta.acns.ab.ca> Mail-Followup-To: Jonathon McKitrick , freebsd-chat@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG References: <20021108173235.GA82490@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021108173235.GA82490@dogma.freebsd-uk.eu.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Nov 08, 2002 at 05:32:35PM +0000, Jonathon McKitrick wrote: > > Hi all, > I just compiled a 'hello world' in objective c on a box with gcc but no > GNUstep. I'm using the compile command as I found it in the tutorial. > > Any idea what I did wrong? Try: gcc -o testme main.m printer.m -lobjc > > thanks, > jonathon > > > dogma:...files/programs/objc> gcc -lobjc main.m printer.m -o testme > main.m: In function `main': > main.m:4: warning: return type of `main' is not `int' -- Chad David davidc@issci.ca www.FreeBSD.org davidc@freebsd.org ISSci Inc. Calgary, Alberta Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message