• 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: decyphering ld's cryptic error messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: decyphering ld's cryptic error messages


  • Subject: Re: decyphering ld's cryptic error messages
  • From: Stefan Werner <email@hidden>
  • Date: Tue, 9 Aug 2005 08:41:53 +0200

Hi Dave,

On Aug 9, 2005, at 12:16 AM, Dave Thorup wrote:

I've spent the last few days reading man pages, FAQs and forums like crazy, trying to resolve a simple linker error, linking my C+ + app against a static build of wxWidgets:

ld: Undefined symbols:
__ZTV14wxMenuItemList

Were you ever able to resolve this? Which version of wxWidgets are you using? I too am getting this same error with the version that I'm using.

It turned out that in my case, the project to build the wxWidgest library and the project using it weren't using the exact same preprocessor defines. If you're using the Xcode project that comes with wxWidgets, the target build settings have an item called "PREPROCESSOR MACROS" that is set to something like "NO_GCC_PRAGMA __WXMAC__ wxUSE_BASE=1 _FILE_OFFSET_BITS=64 _LARGE_FILES __WXMAC_XCODE__=1 WX_PRECOMP=1 MACOS_CLASSIC", depending on what target you build. Copy that to your main project as it is, that's what made it work for me. It seems like just having setup.h correct is not sufficient.


Why this would break only linking of a few symbols but not cause any problems in the compiling stage, I have no clue. Unfortunately, wxWidgets is defining lists and a few other basics using cascades of macros which make it hard to determine what is really going on. I was studying preprocesses code for a while, but that's very time- consuming (especially when using Xcode's editor).

Stefan
_______________________________________________
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: decyphering ld's cryptic error messages
      • From: Dave Thorup <email@hidden>
References: 
 >decyphering ld's cryptic error messages (From: Stefan Werner <email@hidden>)
 >Re: decyphering ld's cryptic error messages (From: Dave Thorup <email@hidden>)

  • Prev by Date: Fwd: [ANN] Next CocoaHeads: Aug 11. New Chapters in Silicon Valley and St. Louis
  • Next by Date: Xcode 2.1 and Mac OS X 10.2.8 SDK: not Networking friendly
  • Previous by thread: Re: decyphering ld's cryptic error messages
  • Next by thread: Re: decyphering ld's cryptic error messages
  • Index(es):
    • Date
    • Thread