Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 30, 2009, 05:23 PM   #1
gdscott
macrumors newbie
 
Join Date: Jan 2009
Location: San Diego
Zthreads on Mac OS X Help

I created a simple C++ program on Macbook Pro (Leopard 10.5.6) to play with the ZThreads open source framework. I downloaded the ZThread 2.3.2 source from sourceforge and compiled it (eg.. ./configure -> make -> make install). I built my test application using Eclipse and linked the ZThread.la library into my application. The application compiles/links successfully but when I try run my application within the Eclipse IDE, I get the following errors:


dyld: lazy symbol binding failed: Symbol not found: __MPIsFullyInitialized
Referenced from: /usr/local/lib/libZThread-2.3.2.dylib
Expected in: flat namespace

dyld: Symbol not found: __MPIsFullyInitialized
Referenced from: /usr/local/lib/libZThread-2.3.2.dylib
Expected in: flat namespace

Any ideas on what could be causing these errors????
gdscott is offline   0 Reply With Quote
Old Jan 30, 2009, 07:19 PM   #2
yeroen
macrumors 6502a
 
yeroen's Avatar
 
Join Date: Mar 2007
Location: Cambridge, MA
You need to link to the CoreServices.framework.

Some digging around with the 'nm' command-line utility reveals the symbol
__MPIsFullyInitialized is defined in /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework.

If you do an 'otool -L' on your executable, does CoreServices show up as being linked against it?
__________________
all Jarvis, all the time

Last edited by yeroen; Jan 30, 2009 at 07:25 PM.
yeroen is offline   0 Reply With Quote
Old Jan 30, 2009, 07:51 PM   #3
gdscott
Thread Starter
macrumors newbie
 
Join Date: Jan 2009
Location: San Diego
I ran the 'otool -L' on my executable called Zthread and this is what I got:

$ otool -L Zthread
Zthread:
/usr/local/lib/libZThread-2.3.2.dylib (compatibility version 3.0.0, current version 3.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
gdscott is offline   0 Reply With Quote
Old Jan 31, 2009, 12:16 PM   #4
yeroen
macrumors 6502a
 
yeroen's Avatar
 
Join Date: Mar 2007
Location: Cambridge, MA
What happens when you compile/link/execute outside the Eclipse IDE?
(I'm not sure what kind of environment your executables inherit when they're run from Eclipse.)

You can also explicitly set the DYLD_FRAMEWORK_PATH environment variable to the /System/Library/Frameworks, i.e. in the shell:

export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks

Then launch your executable from the shell (see the dyld man page for more useful dyld environment variables).
__________________
all Jarvis, all the time
yeroen is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Any good kids games to run on an iMac G3 running Mac OS 10.1-10.4? alexreich PowerPC Macs 10 Feb 10, 2012 02:09 AM
Mac Os gone and only windows shows up, Help me. Sarwanster Windows, Linux & Others on the Mac 2 Sep 24, 2011 01:32 PM
Screen Flickering on iMac G3 DV after upgrade to Mac OS X Coolmatt49 PowerPC Macs 3 Jun 19, 2011 02:43 AM
Can I install Mac OS X on multiple hard drives?? Cmd-the-World Mac Pro 4 Feb 4, 2011 08:05 AM


All times are GMT -5. The time now is 07:35 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC