Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreFoundation / Win32



On Friday, July 25, 2003, at 03:31 PM, Matt Darland wrote:

I've noticed that CoreFoundation has some Win32 portability #ifdefs. Is it possible to build CoreFoundation under Win32, and what build environment is needed( Cygwin, Visual Studio, etc )?

I did it a while ago under Visual Studio. It mostly worked, although there was some minor porting involved. I think I needed to disable some thread stuff, and explicitly define an #ifdef or two. The most pervasive problem was that Visual Studio was very picky about only declaring variables at the top of a function, but its error message was somewhat misleading.

My guess is that it works a lot better if you use GCC as the compiler, and that most of my issues were there.

Now, all of that said, I'm not sure it was really worth the time it took. It probably would have been if I'd taken the time to figure out how to get my own data structures into CFArrays and the like. But it might have been easier for me to just write my own collection routines and go with that. It's hard to say: my biggest mistake was using C, regardless of the library, to parse XML. :-)

-Patrick
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >CoreFoundation / Win32 (From: Matt Darland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.