Microsoft KB Archive/222005

= BUG: LNK2001 When Building Applications for MIPS Palm-size PC That Use Float Comparisons =

Article ID: 222005

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual C++ 6.0

-



This article was previously published under Q222005



SYMPTOMS
Building a MIPS-based Palm-size PC application that uses floating-point comparisons may generate errors similar to the following:

project.obj : error LNK2001: unresolved external symbol __ltd

project.obj : error LNK2001: unresolved external symbol __gtd

project.obj : error LNK2001: unresolved external symbol __eqd



CAUSE
The new version of the MIPS compiler for the Palm-size PC incorrectly makes calls to floating-point comparison functions in later versions of the Windows CE C run time.



RESOLUTION
Use the /QMOC switch to call the earlier versions of the Windows CE floating-point comparison functions.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
The following code fragment generates the errors listed in the SYMPTOMS section:

double a, b;

if ( a < b ) return -1; if ( a > b ) return 1; if ( a==b ) return 0;

Additional query words: kbWinCE201

Keywords: kbbug kbnofix kbcompiler KB222005

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.