FROM : Aya Koshigaya
DATE : Tue Jan 01 23:49:06 2008
Thanks,
here are the errors I get when compiling with GCC 3.3 (only the first
three):
/usr/include/objc/objc-auto.h:72: error: declaration of C function
`objc_object* objc_assign_ivar(objc_object*, objc_object*, int)'
conflicts with
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:62:
error: parse error before `__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:59: error: parse error before `@' token
On Jan 1, 2008, at 23:25, Sherm Pendley wrote:
> On Jan 1, 2008 4:53 PM, Aya Koshigaya <<email_removed>> wrote:
>
> I need to check if an File or Directory exists, but without the use of
> Cocoa or ObjC.. I need it in plain C.. is there a way to do this? :)
>
> stat(). See "man 2 stat"
>
> And, I need a way to create a directory.. also in plain C.
>
> mkdir(). See "man 2 mkdir"
>
> PS: I need it in plain C, cause I have to use GCC 3.3.. and it seems
> like GCC3.3 can't compile ObjC.. I got many errors in the Cocoa.h :/
>
> That's just plain wrong - GCC 3.3 is perfectly happy with Objective-
> C. Post the errors you're seeing, and someone will probably be able
> to tell you what the problem *really* is.
>
> sherm--
>
DATE : Tue Jan 01 23:49:06 2008
Thanks,
here are the errors I get when compiling with GCC 3.3 (only the first
three):
/usr/include/objc/objc-auto.h:72: error: declaration of C function
`objc_object* objc_assign_ivar(objc_object*, objc_object*, int)'
conflicts with
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:62:
error: parse error before `__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:59: error: parse error before `@' token
On Jan 1, 2008, at 23:25, Sherm Pendley wrote:
> On Jan 1, 2008 4:53 PM, Aya Koshigaya <<email_removed>> wrote:
>
> I need to check if an File or Directory exists, but without the use of
> Cocoa or ObjC.. I need it in plain C.. is there a way to do this? :)
>
> stat(). See "man 2 stat"
>
> And, I need a way to create a directory.. also in plain C.
>
> mkdir(). See "man 2 mkdir"
>
> PS: I need it in plain C, cause I have to use GCC 3.3.. and it seems
> like GCC3.3 can't compile ObjC.. I got many errors in the Cocoa.h :/
>
> That's just plain wrong - GCC 3.3 is perfectly happy with Objective-
> C. Post the errors you're seeing, and someone will probably be able
> to tell you what the problem *really* is.
>
> sherm--
>
| Related mails | Author | Date |
|---|---|---|
| Aya Koshigaya | Jan 1, 22:53 | |
| Sherm Pendley | Jan 1, 23:25 | |
| Aya Koshigaya | Jan 1, 23:49 | |
| David Dunham | Jan 2, 00:00 | |
| Aya Koshigaya | Jan 2, 00:02 | |
| Sherm Pendley | Jan 2, 00:20 | |
| Sherm Pendley | Jan 2, 00:28 | |
| Aya Koshigaya | Jan 2, 00:30 | |
| Sherm Pendley | Jan 2, 07:00 |






Cocoa mail archive

