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:to:from:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=LIK 5DyoeCIWIwlXMJdkTjprVO4BspiV0ZE8A/mY6thaDnOgKFRoMR4HPaeTQIIMXJLq FfmjWAQisPiep6fzovtrnLedfWQJwBJyVqmgmLVKxJmYPYZXoe75fUAPsnA7HbLS dhLm/gOk3562ZQUP1yllTdzfpPqCOYTqroB6egW0= 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:to:from:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=OG+30nSAi baDSt85gfce18ACrhg=; b=Hh44iKe4yY7vL7BZqZtifJgWiz1hIgEDlUkp+6OcQ pycRMbhg7is4x5+oy8ZIKjn/WAAbXNe6MwXE5v9ByUrtFyjOtR6sQKwGglCQ2ASf dyYa8R3VEneamL6II1TAXCVvyl/4BEsVydczQ7rxq0bp9uGr7xD5k24MpS9GeR2R 18= 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.7 required=5.0 tests=BAYES_00,FORGED_YAHOO_RCVD,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,TW_BJ autolearn=ham version=3.3.1 To: cygwin AT cygwin DOT com From: Eric Kessler Subject: Compiling Objective-C Using Cygwin Date: Thu, 2 May 2013 18:00:21 +0000 (UTC) Lines: 32 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) 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. 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? -- 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