unkown symbol problem (semi-OT?)
unkown symbol problem (semi-OT?)
- Subject: unkown symbol problem (semi-OT?)
- From: mark <email@hidden>
- Date: Thu, 12 Jan 2006 16:06:25 +1300
Title: unkown symbol problem
(semi-OT?)
I have a project which compiles as C++ with some routines
exported as C for plugin access.
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
extern "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;
};
return 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.
I'm not a C++ expert, is this a bug or am I missing something
about C++?
TIA
Mark
_______________________________________________
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