Re: thread_policy( ) and thread_policy_set( ) : where are those functions ?
Re: thread_policy( ) and thread_policy_set( ) : where are those functions ?
- Subject: Re: thread_policy( ) and thread_policy_set( ) : where are those functions ?
- From: Benjamin Golinvaux <email@hidden>
- Date: Wed, 28 Aug 2002 15:50:26 +0200
I wasn't sure about KERNEL_PRIVATE and I did this to make sure my build
settings were as similar as possible to those of MillionMonkeys. But
that's a good i don't need to define
it before building my precomp, since it prevents the errno "function"
from being used !
Here is (the interesting parts in) my build log :
/usr/bin/jam -d1
JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase
JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=3.1
BUILD_STYLE=Regular
CPP_HEADERMAP_FILE=/Users/benjamin/prj012/Montage/build/
Montage_Jag.build/MontageDebug.build/MontageDebug.hmap
SRCROOT=/Users/benjamin/prj012/Montage
OBJROOT=/Users/benjamin/prj012/Montage/build
SYMROOT=/Users/benjamin/prj012/Montage/build
DSTROOT=/tmp/Montage_Jag.dst
Warning: StandaloneExecutable: Unknown extension on ATADeviceNub.html
when linking with StandaloneExecutable
...updating 616 target(s)...
Mkdir /Users/benjamin/prj012/Montage/build/MontageDebug.app
Mkdir
/Users/benjamin/prj012/Montage/build/Montage_Jag.build/
MontageDebug.build/PrefixHeaders
MakePFEFile
/Users/benjamin/prj012/Montage/build/Montage_Jag.build/
MontageDebug.build/PrefixHeaders/MontageGlobalPrecomp-ppc.pfe
...............
BuildPhase <DeriveAndCompileSources>MontageDebug.app
Completed phase <DeriveAndCompileSources> for
<DeriveAndCompileSources>MontageDebug.app
Mkdir
/Users/benjamin/prj012/Montage/build/MontageDebug.app/Contents/MacOS
MasterObjectFile.Combine
/Users/benjamin/prj012/Montage/build/Montage_Jag.build/
MontageDebug.build/Objects-normal/ProjectBuilderMasterObjectFile.o
StandaloneExecutable
/Users/benjamin/prj012/Montage/build/MontageDebug.app/Contents/MacOS/
MontageDebug
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols:
thread_policy(unsigned, int, int*, unsigned, int)
thread_policy_set(unsigned, unsigned, int*, unsigned)
/usr/bin/g++3 -o
"/Users/benjamin/prj012/Montage/build/MontageDebug.app/Contents/MacOS/
MontageDebug" "-L/Users/benjamin/prj012/Montage/build"
"-L../LicenserKit/Libraries" "-F/Users/benjamin/prj012/Montage/build"
-filelist
"/Users/benjamin/prj012/Montage/build/Montage_Jag.build/
MontageDebug.build/Objects-normal/LinkFileList" "-arch" "ppc"
"-prebind" "-framework" "AppKit" "-framework" "Foundation"
"-framework" "OpenGL" "-framework" "vecLib" "-framework" "QuickTime"
"-framework" "Carbon" "-framework" "CoreMIDI" "-framework" "CoreAudio"
"-framework" "Cocoa" "-framework" "ScreenSaver" "-framework"
"SystemConfiguration" "-lCSLicensingAppKitClient" "-lCSLicensingClient"
"-lCSLicensingDaemon" "-framework" "DVComponentGlue" "-framework"
"AudioToolbox" "-framework" "AudioUnit"
...failed StandaloneExecutable.LinkUsingFileList
/Users/benjamin/prj012/Montage/build/MontageDebug.app/Contents/MacOS/
MontageDebug ...
Thanks a lot for your help......
Benjamin-
On Wednesday, August 28, 2002, at 03:04 PM, Kurt Revis wrote:
On Wednesday, August 28, 2002, at 05:10 AM, Benjamin Golinvaux wrote:
I'm trying to use the thread_policy and thread_policy_set functions,
but
I can't find what I need to link with !
These are present in /usr/lib/libSystem.dylib. ('nm
/usr/lib/libSystem.dylib' will show you the symbols in there.)
Normally you don't do anything special to link against this
library--the compiler does it for you.
When I try to use Kernel.framework
You don't want to do this. Kernel.framework is not a framework that
applications can link against. It's just a convenient place to put
headers that are used for building kernel extensions.
Note that MillionMonkeys doesn't have the checkbox next to
Kernel.framework checked, so it doesn't actually try to link against
that framework. It's just there to make it easy for humans to read the
headers in that framework.
I've had a look at the MillionMonkeys code sample, but I can't find
what's different
in my own project... I've defined KERNEL_PRIVATE in the target
settings
It looks like KERNEL_PRIVATE is only used in the file latency.h in
MillionMonkeys. It's not a general system thing, so it shouldn't apply
to your code.
Let's step back a bit. What error message are you seeing, exactly?
--
Kurt Revis
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.