Re: Carbon with UNIX
Re: Carbon with UNIX
- Subject: Re: Carbon with UNIX
- From: Markus Hitter <email@hidden>
- Date: Sun, 16 Jan 2005 10:56:07 +0100
Am 16.01.2005 um 07:41 schrieb Edwin Vane:
I have had lots of experience with Visual C++ and I've been finding
getting XCode to do the things I can co easily with VC++ to be
difficult.
I'm not really a Visual Whatever expert, but I'm sure there are a lot
of things which make coding on Xcode easier than in VC++ as well. It's
just a matter of watching out for the strengths of the Macintosh
platform. Do you have NIBs on VC++? ZeroLink? Something like Cocoa?
I cannot make XCode compile a simple program that uses stat() (the
standard UNIX function that fits with fopen(), etc.). I use #include
to include the right files ...
Which do you think are the right files?
but XCode complains that stat() is not defined (nor is struct stat).
Well, as a little sunday morning test, I created a Carbon project from
Xcode's template, added this:
#include <sys/types.h>
#include <sys/stat.h>
and this:
struct stat sb;
stat("/tmp", &sb);
and the app compiles and works flawlessly.
What's the deal?
1) If you have trouble, try a simple code example to make sure you are
on the right track.
2) If it still doesn't work, search the net. You'll find the archives
of Apple's lists indexed on Google.
3) As a last resort, post these example lines to the appropriate list
(e.g. Carbon-Dev). Try to describe facts ("#include <sys/stat.h>")
instead of opinions ("I include the right file").
2) The UI for the help interface in XCode is corrupt somehow.
Not seen this either. Surely, it would help if you tell something about
which version of OS & Xcode you are using.
If you really have hit a bug in Xcode, removing the entire build folder
and the stuff in $HOME/Library/Application\ Support/Apple might help.
Happy coding,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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