1
icudate: a sample program which displays the current date
3
This sample demonstrates
5
Outputting text in the default codepage to the console
9
date.c Main source file
10
uprint.h codepage output convenience header
11
uprint.h codepage output convenience implementation
12
date.dsw Windows MSVC workspace. Double-click this to get started.
13
date.dsp Windows MSVC project file
15
To Build icudate on Windows
16
1. Install and build ICU
17
2. In MSVC, open the workspace file icu\samples\date\date.dsw
18
3. Choose a Debug or Release build.
22
1. Start a command shell window
23
2. Add ICU's bin directory to the path, e.g.
24
set PATH=c:\icu\bin;%PATH%
25
(Use the path to where ever ICU is on your system.)
26
3. cd into the icudate directory, e.g.
27
cd c:\icu\source\samples\date\debug
32
1. Build ICU. icudate is built automatically by default unless samples are turned off.
33
Specify an ICU install directory when running configure,
34
using the --prefix option. The steps to build ICU will look something
36
cd <icu directory>/source
37
runConfigureICU <platform-name> --prefix <icu install directory> [other options]
44
cd <icu directory>/source/samples/date
49
export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
53
Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
54
If in doubt, run the sample using "gmake check", and note the name of
55
the variable that is used there. LD_LIBRARY_PATH is the correct name
56
for Linux and Solaris.