Itaniun & Managed C++ Extensions: Unresolved token 'Sleep'
We wrote a small .NET DLL using the Managed Extensions for C++ using Visual Studio 2003 and it worked like a dream on our 32-bit x86 Windows machines. Now however we want to rebuild the same thing on an Itanium using Windows Server 2003 and the Visual Studio 2005 beta 2 and we've hit a problem getting it to link.
We're compiling at the command-line with:
cl /LD /MD /G2 /clr:oldSyntax /Feour-assembly.dll oursrc.cpp StdAfx.cpp /link /MACHINE: IA64 /NODEFAULTLIB: libcmt.lib /NOENTRY mscoree.lib
However, we get the following errors at the linking stage:
MSVCMRT.lib(mstartup.obj) : error LNK2028: unresolved token (0A00008E) "void __cdecl Sleep(unsigned long)" (?Sleep@@$$J0YAXK@Z) referenced in function "private: void __cdecl <CrtImplementationDetails>::LanguageSupport::_Initialize(void)" (?_Initialize@LanguageSupport@<CrtImplementationDetails>@@$$FAEAAXXZ)
MSVCMRT.lib(mstartup.obj) : error LNK2019: unresolved external symbol "void __cdecl Sleep(unsigned long)" (?Sleep@@$$J0YAXK@Z) referenced in function "private:void __cdecl <CrtImplementationDetails>::LanguageSupport::_Initialize(void)" (?_Initialize@LanguageSupport@<CrtImplementationDetails>@@$$FAEAAXXZ) xprmdn-helper.dll : fatal error LNK1120: 2 unresolved externals
I'm presuming I have to link in something else to resolve these dependancies, but have no idea what... advice on this matter would be very much appreciated. :)

