Mail Archives: djgpp/1993/12/29/13:09:20
Hello,
As of 1.11 or 1.11m or 2.5.7 GCC, the objective C library distributed
with DJGPP has not worked. The adding of encoding.c was necessary,
but the runtime would come up with strange errors when compiled. I
think it is due to optimization within gcc for the i386.
In order to get Objective C working with DJGPP, the library will
have to have the _optimization_turned_off_. I was working on the
problem to figure out why this isn't working, but I need to get
all of GCC sources before I do that and report to the gcc group.
Also, I didn't check the other levels of optimization yet, I just
know that without optimization on the runtime, the code will run.
Hope that helps,
Dru
P.S. dj:
Here is a small piece of code which could be added to the tests to insure
that the obj-c potion is working. It should say "My class is Object".
To compile just do a gcc -o obtest obtest.m -lobjc.
#include "objc/Object.h"
main() {
id test;
test = [Object new];
printf("My class is %s\n", [test name]);
}
- Raw text -