• 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
Re: unkown symbol problem (semi-OT?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: unkown symbol problem (semi-OT?)
      • From: mark <email@hidden>
References: 
 >unkown symbol problem (semi-OT?) (From: mark <email@hidden>)

  • Prev by Date: Re: xcode 2.2 compiles .m file as C++
  • Next by Date: Re: unkown symbol problem (semi-OT?)
  • Previous by thread: unkown symbol problem (semi-OT?)
  • Next by thread: Re: unkown symbol problem (semi-OT?)
  • Index(es):
    • Date
    • Thread