• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
unkown symbol problem (semi-OT?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: unkown symbol problem (semi-OT?)
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Lipo & PackageMaker Error ?
  • Next by Date: Re: xcode 2.2 compiles .m file as C++
  • Previous by thread: Re: Highlighting a text field...
  • Next by thread: Re: unkown symbol problem (semi-OT?)
  • Index(es):
    • Date
    • Thread