Linker errors while building windows executable.

I've successfully compiled Clang using Visual Studio Express 2010 ,
and can compile
and run Hello, World! using Clang on the Visual Studio Command Prompt.
But, when I
try and compile a simple windows program (source attached), I get these errors.

cc-000000.o : error LNK2019: unresolved external symbol __imp__LoadIconA@8 refer
enced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 ref
erenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__GetStockObject@4
referenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__RegisterClassExA@
4 referenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__CreateWindowExA@4
8 referenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__ShowWindow@8 refe
renced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 re
ferenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__GetMessageA@16 re
ferenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__TranslateMessage@
4 referenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__DispatchMessageA@
4 referenced in function _WinMain@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__BeginPaint@8 refe
renced in function _WndProc@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__TextOutA@20 refer
enced in function _WndProc@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__EndPaint@8 refere
nced in function _WndProc@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4
referenced in function _WndProc@16
cc-000000.o : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16
referenced in function _WndProc@16
a.out : fatal error LNK1120: 15 unresolved externals
clang: error: linker command failed with exit code 1120 (use -v to see invocatio
n)

No matter what options I pass through with -Xlinker LINK can't find
the proper libs.

How can I fix this?

Virtually,
Michael D. Morris

clangtest.c (2.52 KB)