delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/02/14:20:25

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <Ldgn86a AT yahoo DOT com>
Subject: Compiling Objective-C Using Cygwin
Date: Thu, 2 May 2013 18:00:21 +0000 (UTC)
Lines: 32
Message-ID: <loom.20130502T194524-806@post.gmane.org>
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019