gcc -c BusErr.m
ghci -framework Foundation +RTS -RTS BusErr.o
Loading package base ... linking ... done.
Loading object (static) BusErr.o ... done
Loading object (framework) Foundation ... done
final link ... Bus error
Now that is interesting. I can reproduce that on my machine, and I'll
investigate it.
Also note that you should avoid loading Objective C .o files into GHCi
at all costs anyway, because GHCi's Linker does not support Objective C
and therefore won't initialise classes, resolve selectors etc. Anything
more complex than NSLog will probably fail. When you have Objective C
code, put it into a dynamic library and load that from GHCi. I do not
think that your current problem is related to this, but you're bound to
run into this next. So you've been warned ;-).
Cheers,
Wolfgang
|