How do I use the Objective-C bindings? When trying to build a simple example program, I get:
chiyo:/tmp% gcc -o test test.m -lFoundation /tmp/ccowH8qL.o: In function `main': test.m:(.text+0x1c0): undefined reference to `really_free_svalue' /tmp/ccowH8qL.o:(.data+0x334): undefined reference to `__objc_class_name_OCPikeInterpreter' collect2: ld returned 1 exit status chiyo:/tmp%
Ok, I obviously need to create some library. But how? The only part of the build system which touches "OCPikeInterpreter" appears to be the rule "framework", but making framework does not work:
chiyo:~/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc% make framework Compiling OCPikeInterpreter.m make[1]: Entering directory `/home/marcus/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc' make[1]: Leaving directory `/home/marcus/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc' make[1]: Entering directory `/home/marcus/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc' make[1]: Leaving directory `/home/marcus/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc' Linking Pike.framework gcc: Cocoa: No such file or directory gcc: dynamic_lookup: No such file or directory gcc: 7.7: No such file or directory gcc: @executable_path/../Frameworks/Pike.framework/Pike: No such file or directory gcc: unrecognized option '-current_version' make: *** [framework] Error 1 chiyo:~/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc%
I think this needs some work before it can go into 7.8.