Can't compile cp
Can't compile cp
- Subject: Can't compile cp
- From: Jeffrey Ellis <email@hidden>
- Date: Sat, 30 Sep 2006 19:01:03 -0700
- Thread-topic: Can't compile cp
I copied the code from cp into a new file but it won't compile because Xcode
can't find the file copyfile.h. For starters,
#ifdef __APPLE__
#include <copyfile.h>
#endif
and there are several places in the code, also bracketed by #ifdef
__APPLE__, which calls a copyfile() function.
Skimming through the code quickly, and by implication of its name, it seems
that this function is doing the "actual work" of copying, but that doesn't
quite make sense because these invocations should be followed by and #elsif,
and then some other routines to use if __APPLE__ is not defined. I mean, if
you compiled this code without __APPLE__ defined, whatever copyfile does
(copying a file, it looks like) would not get done.
Anyhow, I cannot find copyfile.h anywhere on my hard drive nor in the ADC
(Apple Developer Connection) website. Does anyone know where to get it?
Thanks again :)
All My Best,
Jeffrey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden