• 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
Linker Error - Symbol Not Found
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linker Error - Symbol Not Found


  • Subject: Linker Error - Symbol Not Found
  • From: koko <email@hidden>
  • Date: Mon, 16 Apr 2012 10:45:37 -0600

This is really strange and holding me up.

I have a C++  class ( CPropSheet )included in my project, the .h and .cpp files.  The project compiles all files as Obj-C++.

In an objc-c interface definition I declare a pointer to a type of the C++ class:

CPropSheet  *m_CPropSheet;

In the obj-c implementation, awakeFromNib I do:

 m_CPropSheet = new CPropSheet();

The constructor for CPropSheet is defined in the C++ .h, the implementation exists in the .cpp

The project compiles and then fails on a link error 

  "CPropSheet::CPropSheet()", referenced from:

      -[NSPropSheet awakeFromNib] in NSPropSheet.o

ld: symbol(s) not found for architecture i386


I am stumped as to how this can be.


Any suggestions are appreciated!


-koko


 _______________________________________________
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

  • Prev by Date: Re: Um, what is the process to duplicate a class?
  • Next by Date: Re: Linker Error - Symbol Not Found
  • Previous by thread: Re: Um, what is the process to duplicate a class?
  • Next by thread: Re: Linker Error - Symbol Not Found
  • Index(es):
    • Date
    • Thread