glew_shared and glew_static build just fine but when I try to build  visualinfo I get the following link errors:

------ Build started: Project: visualinfo, Configuration: Debug MX Win32 ------
Compiling...
visualinfo.c
..\..\src\visualinfo.c(149) : warning C4996: 'fopen' was declared deprecated
        C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\..\src\visualinfo.c(231) : warning C4996: 'strcpy' was declared deprecated
        C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
Linking...
visualinfo.obj : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function _VisualInfoGDI
visualinfo.obj : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function _CreateContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function _CreateContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function _CreateContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _CreateContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__RegisterClassA@4 referenced in function _CreateContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function _CreateContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _DestroyContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function _DestroyContext
visualinfo.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function _DestroyContext
../../bin/visualinfo-mxd.exe : fatal error LNK1120: 10 unresolved externals
Build log was saved at "file://c:\src\glew\build\vc6\static\debug-mx\BuildLog.htm "
visualinfo - 11 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========






and I get this for glewinfo:

------ Build started: Project: glewinfo, Configuration: Debug MX Win32 ------
Compiling...
glewinfo.c
..\..\src\glewinfo.c(5511) : warning C4996: 'fopen' was declared deprecated
        C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
Linking...
glewinfo.obj : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function _glewCreateContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function _glewCreateContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function _glewCreateContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _glewCreateContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__RegisterClassA@4 referenced in function _glewCreateContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function _glewCreateContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _glewDestroyContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function _glewDestroyContext
glewinfo.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function _glewDestroyContext
../../bin/glewinfo-mxd.exe : fatal error LNK1120: 9 unresolved externals
Build log was saved at " file://c:\src\glew\build\vc6\static\debug-mx\BuildLog.htm"
glewinfo - 10 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Any help would be nice, thanks.