Unresolved widechar symbols under Jaguar.
Unresolved widechar symbols under Jaguar.
- Subject: Unresolved widechar symbols under Jaguar.
- From: Brian Stephens <email@hidden>
- Date: Fri, 19 Nov 2004 15:26:40 -0500
I'm having trouble running an application that uses a framework that lazily links in widechar function references under Jaguar (10.2.8). The framework in question is NVIDIA's Cg framework.
Here's the scenario:
THE BUILD
- I'm building the application on a Panther (10.3.6) machine using Xcode 1.5.
- I'm using Release 1.3 Beta 2 of the NVIDIA Cg Toolkit.
- I've properly enabled cross-compiling for version 10.2.8 of OS X.
- I've properly enabled the bundling of the Cg framework into my application bundle.
- The application compiles/runs fine on this machine.
THE TARGET MACHINE
I then copy this application over to the Jaguar (10.2.8) machine (which doesn't have the Cg framework installed - but doesn't need it since it is bundled into the app). When I run it, (watching the console output), I can see it gets a good way into execution. I can tell that my window is created, all my data is loaded, various OpenGL & AGL calls are successful. Several Cg calls are even made, but at some point into the application it drops dead saying:
dyld: <path to my app> Undefined symbols:
_mbsrtowcs
_wcsrtombs
_wcslen
_wmemchr
_wmemcmp
_wmemcpy
_wmemset
_btowc
_iswctype
_towlower
_towupper
_wctob
_wctype
_wcsftime
_wcscoll
_wcsxfrm
_wmemmove
I noticed by looking at the console output of the Panther machine (the machine where the app was built and runs fine) that the crash I'm seeing on the Jaguar machine directly corresponds to where I see the following in the Panther console output (the actual message is irrelevent):
"Warning: Profile option 'NumTemps=' value (256) too large; clamped to 32."
Now, this is a message that I don't produce, so I'm pretty darn sure it's coming from Cg - and my hunch is that it uses widechar functions to generate it - which is causing the above crash. More proof of my hunch comes from dumping Cg with otool:
The command: 'otool -R -v Cg | grep wcs' gives:
_wcslen undefined [lazy]
_mbsrtowcs undefined [lazy]
... and so on...
So for whatever reason the app can dynamically resolve these on Panther but not Jaguar. *** And here's the kicker *** If I use one of these widechar functions in my APPLICATION (that uses the Cg framework), the function links, resolves, and executes fine - even on the Jaguar machine - but the same calls from the FRAMEWORK still fail.
MY QUESTION
So my question is, has anyone else had to deal with this, and more importantly, how do I solve this? Is there a way to somehow include the Panther version of the clib (if that would indeed fix it), into the application bundle? Or something else?
Thanks.
-Brian
_______________________________________________
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