Re: tDirStatus is an undefined type?
Re: tDirStatus is an undefined type?
- Subject: Re: tDirStatus is an undefined type?
- From: "B.J. Buchalter" <email@hidden>
- Date: Thu, 6 Dec 2007 16:33:44 -0500
His program is compiling properly -- there are no flagged files.
He is having problems with the debugger showing the value of his local
variable.
Larry, try clicking the button that opens the debugger console and
typing
p <name of variable>
and see what that shows you. It may give you the numerical value
rather than the name of the enum.
Sometimes the interaction with gdb directly is more fruitful than
Xcode's graphical interface.
It is a real pain, but at least you can usually get the info...
Best regards,
B.J. Buchalter
On Dec 6, 2007, at 4:12 PM, Tommy Nordgren wrote:
On 6 dec 2007, at 22.02, Laurence Harris wrote:
On Dec 6, 2007, at 3:17 PM, Tommy Nordgren wrote:
On 6 dec 2007, at 20.58, Laurence Harris wrote:
I want to see the value of a status code returned by a system
function. It's a tDirStatus, which is an Apple-defined enum type,
but Xcode just says "undefined type" and I can't see the value.
Thank goodness I can write Xcode correctly, because I can't seem
to do anything else with it.
Larry
Are you sure you are including the DirectoryService framework in
your build?
Yes. The application wouldn't build and run if I didn't.
Larry
OK. Then maybe you are forgetting an include statement in a source
file.
With some compiler settings, the compiler with infer function
prototypes if not included.
Try putting #include <DirectoryService/DirectoryService.h>
in the flagged files.
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
email@hidden
_______________________________________________
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
B.J. Buchalter
Metric Halo
http://www.mhlabs.com
_______________________________________________
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