public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Compiling Objective-C Using Cygwin
@ 2013-05-02 18:20 Eric Kessler
  2013-05-02 18:38 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Kessler @ 2013-05-02 18:20 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-02 20:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-02 18:20 Compiling Objective-C Using Cygwin Eric Kessler
2013-05-02 18:38 ` Larry Hall (Cygwin)
2013-05-02 19:15   ` Eric Kessler
2013-05-02 19:39     ` marco atzeri
2013-05-02 19:42     ` Larry Hall (Cygwin)
2013-05-02 19:44       ` Larry Hall (Cygwin)
2013-05-02 20:02       ` Eric Kessler
2013-05-02 20:06         ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).