X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=p3Y6Wu7pqA3z4VYG rvkDs+isphwJ0gsRU4AsNFklJtAguq9NuU+k2+gMtBDlx/PWlIc9w3BG2CHscs9Y AhtRxZsYfNPcSFMFHhhrCaoLsMKPmhJ2RoqCBSNFW6qgc9/Jvbl8sOI2p9mRsTEW RAG5dz1t9UarA1+QRnzBUxVc8bs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=+nKLbrz2wfJTKShJnQ6PTy hIIyI=; b=ahIt34/C/pXD1CXyM4JxzN7xyIJV3QCf5koDAEypqYXPz3nmJckJPA xaSZ1qkefi12FlZPXDs/wV9E6YZMfu2Uy4iNkA8Xc/GxJN7yMOo7y49tY2jBtKUt x1GJbTW4xxyI2KIb1dXb9F+p+3REhlEKtkx73tie8k8KLpPkyyWXc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_BJ autolearn=no version=3.3.1 Message-id: <5182B2A6.10406@cygwin.com> Date: Thu, 02 May 2013 14:38:30 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Compiling Objective-C Using Cygwin References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 5/2/2013 2:00 PM, Eric Kessler wrote: > I am trying to learn Objective-C using Cygwin. > > First I wrote a hello world program in C and compiled it thus: > > gcc -o inventry inventry.c > > and it worked perfectly. > > Then I renamed the source file inventory.m, and since every C program > should be a valid Objective-C program, compiled it thus: > > gcc -o inventry inventry.m -lobjc > > and got the following error: > > gcc: error trying to exec 'cc1obj': execvp: No such file or directory > > I did a web search of that error message, and found that I needed to > install gobjc. I could not find gobjc on the installer package from the > mirror site from which I had originally installed cygwin, so I got it from > a site called "ubuntu" and installed it. You can't do this. Cygwin != Linux! > Now I get the following error: > > gcc: error trying to exec '/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1obj': > execv: Exec format error > > I did a web search of that error, and found something that said that > cygwin was not installed properly and needs to be reinstalled. I assume > that means that the version of gobjc that I installed from "ubuntu" was > not compatible with my cygwin installation. > > So how do I get gobjc from the standard installer package? I don't see it > listed in the list of packages to install? Install gcc4-objc. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple