David Phillip Oster wrote in
> In article ,
> "François Robert" wrote:
....
> fstat wants:
> #include <sys/types.h>
> #include <sys/stat.h>
>
> Adding those to a the HelloWorld.cp of a new "C++ console
> Mach-O" style C++ project shows it compiles with no problems.
> (I've got "OS X Volume" set to /Developer/SDKs/MacOSX10.3.9.sdk
> on the Source Trees panel of the IDE preferences.)
My mistake(s) : The brain was thinking "stat" but the hand typed
"fstat"... I meant :
#include <stat.h>
But I think you pointed out the solution, too :
It should be (as documented) :
#include <sys/stat.h>
and not merely :
#include <stat.h>
and the access path should not contain the MSL_Extras part. That way, it
compiles (and run).
FYI : on my Mac I do have an MSL stat.h in
..../Metrowerks CodeWarrior/MSL/MSL_Extras/MSL_Common/Include/sys/stat.h
_______________________________________________________
François Robert
(to mail me, reverse character order in reply address)
>> Stay informed about: A two liner that won't compile on CW 9.5