Native ObjC exception problem.

Sašo Kiselkov <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
Hi.

I'm using gcc 4.0.1 (latest Debian package) and I get the following error when
trying to compile a tool that uses the native (@try{}@catch{...}...) exceptions
model in Objective-C:

Making all for tool test...
 Compiling file test.m ...
 Linking tool test ...
./shared_obj/test.o:(.gnu.linkonce.d.DW.ref._OBJC_CLASS_NAME_4[DW.ref._OBJC_CLASS_NAME_4]+0x0):
undefined reference to `_OBJC_CLASS_NAME_4'
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/test] Error 1
make: *** [test.all.tool.variables] Error 2

The funny thing is I get it only when I actually use @try{}, but if I just
@throw an object it works, compiles nicely a makes the tool abort() (since the
exception isn't handled).
Do I need to upgrade to gcc 4.1 or can I cut out the libobjc 4.1 out of it in
some way? I'd like to avoid making a completely new gcc 4.1, since I have a
rather slow computer and compiling it would take days.

Regards
 Saso
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.