User Activity

  • Posted a comment on discussion General Discussion on Portable Object Compiler

    $ ${HOME}/bin/objc -import -B${HOME} main003.m -o poc_prog004 Portable Object Compiler 3.3.24 (c) 1997-2021. Distributed under the terms of the GNU LGPL. /usr/lib/gcc/x86_64-linux-gnu/8/include/objc/objc.h:94: fatal: syntax error ";"

  • Posted a comment on discussion General Discussion on Portable Object Compiler

    $ gcc main003.m -o gnu_prog003 -l objc main003.m: In function ‘main’: main003.m:51:2: warning: ‘Greeter’ may not respond to ‘+alloc’ myGreeter = [Greeter alloc]; ^~~~~~~~~ main003.m:51:2: warning: (Messages without a matching method signature main003.m:51:2: warning: will be assumed to return ‘id’ and accept main003.m:51:2: warning: ‘...’ as arguments.) main003.m:52:2: warning: no ‘-init’ method found myGreeter = [myGreeter init]; ^~~~~~~~~ main003.m:56:2: warning: no ‘-free’ method found [myGreeter...

  • Posted a comment on discussion General Discussion on Portable Object Compiler

    /* main003.m Objective-C hello world-type program compile: $ gcc main003.m -o gnu_prog003 -l objc compile POC: $ ${HOME}/bin/objc -verbose -import -B${HOME} main003.m -o poc_prog004 */ / stolen from example written by Pascal Bourguignon / import <stdio.h></stdio.h> import <objc object.h=""></objc> / -=-=-=-=- @interface section / @interface Greeter: Object { / normally instance variables would be declared here, but these are none used in this example / } -(void) greet; @end / -=-=-=-=- @implementation...

  • Posted a comment on discussion General Discussion on Portable Object Compiler

    I decided I was just beating myself up by trying to make Cygwin work. Every successful compile that uses GCCOBJC ends in a segfault. I wiped that machine and loaded Debian. I have Stephen Kochan's book 'Programming in Objective-C' and am using it or other programs that are just slightly above the level of Hello World. I built POC on Debian, no sweat. When I compile with GCCOBJC I get a flurry of warnings about free and init, and when I execute I continue to get segfaults. Switching to POC spits out...

  • Posted a comment on discussion General Discussion on Portable Object Compiler

    Attempting to build POC on Cygwin. $ cc --version cc (GCC) 10.2.0 Building the bootstrap compiler works: $ cd objc-bootstrap-3.3.21 $ CC='cc -ansi ' ./configure --without-postlink --prefix=${HOME} $ make && make install Trying to build POC: $ cd objc-3.3.21 $ make clean $ CC='cc -ansi ' ./configure --without-postlink --prefix=${HOME} $ make make compiler make[1]: Entering directory '/cygdrive/c/Users/stephen.harris/Downloads/POC/objc-3.3.21' cd src; cd objcrt; make make[2]: Entering directory '/cygdrive/c/Users/stephen.harris/Downloads/POC/objc-3.3.21/src/objcrt'...

View All

Personal Data

Username:
steveharris4692
Joined:
2021-03-11 20:46:55

Projects

  • No projects to display.

Personal Tools