Re: Carbon with UNIX
Re: Carbon with UNIX
- Subject: Re: Carbon with UNIX
- From: Ian Krieg <email@hidden>
- Date: Sun, 16 Jan 2005 14:04:05 -0500
struct stat sb;
stat("/tmp", &sb);
I tried a simple test as you suggested and it still failed to work.
However, I noticed that you have 'struct stat sb' and I just had 'stat
sb'. Once I changed it, the errors went away. I'm assuming that this is
a C dialect problem. I can use my original syntax with gcc in Linux or
VC++ in Windows with no problems (using the default dialects). If
anybody knows off the top of their head about this, let me know.
Otherwise, eventually I'll get around to playing with it myself.
Edwin V
If the code is compiled as C++, then structs can be referenced
without the keyword "struct". If it's compiled as C, you will need
the keyword "struct". This is standard, and not Mac-specific.
Ian Krieg
_______________________________________________
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