Using WCRT
You use WCRT by making sure the WCRT include directory is searched before any default include paths, and linking with the WCRT library. On the command line this can be done with e.g.: cl /O1 /Ic:\wcrt\include hello.c c:\wcrt\lib\wcrt.lib
If you get any errors about multiply defined symbols involving libc.lib,
chances are you are using something from the Visual C runtime library
which is incompatible with WCRT. Try adding
' When building the WCRT library there are a couple of defines that affect the generated code:
|