[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Native ObjC exception problem.
From: |
Sašo Kiselkov |
Subject: |
Native ObjC exception problem. |
Date: |
Wed, 24 Aug 2005 13:18:54 +0200 |
User-agent: |
Internet Messaging Program (IMP) 3.2.5 |
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
- Native ObjC exception problem.,
Sašo Kiselkov <=