Article View: gnu.gcc.help
Article #41683Objective C Extensions to GCC 2.7.2 / emx 0.9b
From: dbergstein
Date: Sat, 24 Feb 1996 00:00
Date: Sat, 24 Feb 1996 00:00
25 lines
1676 bytes
1676 bytes
I am looking for assistance from anyone who has successfully compiled the
Objective C sample programs (default location is /usr/samples). I obtained
emx 0.9b and have had found that there were warnings not revealed by the
default compiler options in the makefile.preamble file. When adding the
'-Wall' option I saw the following with the textview sample program:
[E:\usr\samples\textview]make
gcc -c -O2 -Wall textview.m
textview.m:7: warning: return-type defaults to `int'
textview.m: In function `main':
textview.m:30: warning: implicit declaration of function `malloc'
textview.m:57: warning: implicit declaration of function `free'
textview.m:79: warning: control reaches end of non-void function
gcc -o textview.exe -g textview.o \
-lobjcpm -lobjc
emxbind -ep textview.exe
emxbind 0.9b -- Copyright (c) 1991-1995 by Eberhard Mattes
emxbind -s textview.exe
emxbind 0.9b -- Copyright (c) 1991-1995 by Eberhard Mattes
Note that the .exe file was still created - - this does not work, of course, but
causes an access violation in the WPS and exits.
Perhaps I need to set my includes or libraries differently, but I am not sure
if there is something else I have overlooked. Your feedback is appreciated.
Technical Details
Message-ID:
<4gnh0r$kou@news.cais.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,32f1b9e54651165c,start X-Google-Attributes: gid11318c,public From: dbergstein@ids2.idsonline.com@ids2.idsonline.com Subject: Objective C Extensions to GCC 2.7.2 / emx 0.9b Date: 1996/02/24 Message-ID: <4gnh0r$kou@news.cais.com> X-Deja-AN: 140875852 organization: Mad Max And The Blues Kings reply-to: dbergstein@ids2.idsonline.com newsgroups: gnu.gcc.help