FIX: You receive an error message or an exception when you compile or run an application that has some compiler options turned on in Visual Studio 2008 SP1

Symptoms

In Microsoft Visual Studio 2008 Service Pack 1 (SP1), one of the following problems occurs.

Symptom 1

When you compile a project that contains the /arch:SSE(2) option and the /fp:except option, you receive the following error message:

Command line error D8016:'/arch:SSE2' and '/fp:except' command-line options are incompatible.

Symptom 2

When you run a Visual C++ application that contains an uninitialized floating-point, a floating-point exception occurs. Additionally, you may receive the following error message:

0xC0000090: Floating-point invalid operation

This problem occurs if the following conditions are true:

  • You add the /fp:except option to the compiler option list to disable the floating-point exception.


  • The source code contains an uninitialized floating-point variable.

  • The uninitialized floating-point variable is located in a memory that contains a signaling not-a-number (NaN) value.

Symptom 3

When you compile an unmanaged Visual C++ application by using the /O2 compiler option or the /Ox compiler option, you receive an exception that resembles the following:

Unhandled exception at 0x00401342 in file_name: 0xC0000090: Floating-point invalid operation.

Notes

  • The number 0x00401342 may change at different times.

  • The exception is not generated when you turn on the /Od compiler option or the /O1 compiler option.

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2008 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=supportNote In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have Visual Studio 2008 Service Pack 1 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

File name

File version

File size

Date

Time

Platform

C2.dll

15.0.30729. 4056

2,361,656

03-Mar- 2009

10:46

x86

Cl.exe

15.0.30729.4056

126, 776

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

19 2,328

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

20 9,736

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

27 7,304

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

27 9,880

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

39 1,496

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

39 2,008

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

45 7,544

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

46 4,200

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

46 7,272

03-Mar- 2009

10:46

x86

Clui.dll

15.0.30729.4056

47 2,392

03-Mar- 2009

10:46

x86

Link.exe

9.0.30729.4056

799 ,048

03-Mar-2009

10:46

x86

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

If these problems occur when you use Visual Studio 2008, use the hotfixes that are described in the following Microsoft Knowledge Base articles:

955025 FIX: Error message when you compile a project that contains the /arch:SSE(2) option and the /fp:except option in Microsoft Visual Studio 2008: "Command line error D8016:'/arch:SSE2' and '/fp:except'command-line options are incompatible."

956089 FIX: A floating-point exception occurs when an application contains an uninitialized floating-point variable and is compiled with the /fp:expect option in Visual Studio 2008

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×