Re: decyphering ld's cryptic error messages
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