Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undefined widechar symbols under Jaguar using Cg



I'm having trouble running an application that uses the Cg framework under Jaguar (10.2.8). 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 models are loaded, all my AGL stuff is 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

You may be wondering after what Cg call this happens, but I don't even think it matters because:

MY HUNCH

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:

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.

MY QUESTION

So my question is, has anyone else had to deal with this, and more importantly, how do I solve this?


Thanks. -Brian


_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.