Re: unkown symbol problem (semi-OT?)
Re: unkown symbol problem (semi-OT?)
- Subject: Re: unkown symbol problem (semi-OT?)
- From: Eric Albert <email@hidden>
- Date: Wed, 11 Jan 2006 20:00:23 -0800
On Jan 11, 2006, at 7:06 PM, mark wrote:
I have a class (that belongs to the project, not a plugin), in it's constructor, this line:
oe=CreateNewDVSelection(this);
The header file for the routine is as follows:
#ifdef __cplusplus
"C" {
#endif
OSStatus CreateNewDVSelection(DirView* theView);
#ifdef __cplusplus
}
#endif
The source code for the routine is as follows:
OSStatus CreateNewDVSelection(DirView* theView) {
if (theView==nil) {return paramErr;}
DVSelectionsRef dvs=nil;
try {
dvs=new DVSelections(theView);
}
catch (OSStatus OE) {
if (dvs) {delete dvs;}
return OE;
}
catch (...) {
if (dvs) {delete dvs;}
return memFullErr;
};
0;
};
The problem is that during runtime, a SIGABRT occurs and the linker reports "ZeroLink: unknown symbol '__ZTV12DVSelections' ".
This is the mangled version of the symbol.
That's not the mangled version of CreateNewDVSelection:
Ithilien:~> c++filt _ZTV12DVSelections
vtable for DVSelections
Ithilien:~>
I wonder if DVSelections.cpp isn't included in your project or if the code for DVSelections isn't being linked against.
I'd also suggest turning off ZeroLink until you can link successfully. ZeroLink hides link errors until runtime, but it's a lot easier to track them down and fix them at build time.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden