CFLite old
This page documents how to build CFLite 476.10 such that you can then link to it in your Windows projects, and then blissfully use CFStrings, CFDictionaries, and all the other CFGoodness that CFLite will bring you. For a "quick and dirty" way to just start *using* CFLite on windows (without having to compile it), click here.
On Windows XP or Windows Vista:
- Install Cygwin - select (add them by clicking the text labelled Skip) these packages during the install:
- Devel/gcc-core
- Devel/gcc-objc
- Devel/make
- If you want to debug the dll, also install Devel/gdb.
- When you first run cygwin, it may notify you that it needs you to build /etc/passwd and /etc/group. Do this. Your cygwin setup should be ready.
- Download ICU4C
- Download CFLite 476.13. Ooops! Not available? Try: CFLite 476.10
- Get FreeBSD's flsl.c source file
- Download include.zip (contains /usr/include/*, which includes AvailabilityMacros, AssertMacros and TargetConditionals from 10.5)
- If you're using Microsoft Visual Studio, you'll need stdint.h and stdbool.h They don't come with the compiler but are part of the C99 standard.
- You will need the contents of mach/*, i386/*, malloc/malloc.h, and sys/cdefs.h from xcode 3.0
- Apply the patch
- Run make
- Download CFTest source files. This is the test harness sample project.
- You can ignore the XCode project
- create a new project in your windows dev environment and add the two .cpp files.
- the "console.txt" is the example output that it should look like in your console
- you may need to tweak the relative path for "test.xml" to load properly.
Please document any necessary changes to the source code.