Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam

Webinar: Evaluation - 05.12

>
>
Visual Studio Team System, /analyze and…

Visual Studio Team System, /analyze and D9040

Jan 19 2010

The C++ compiler in Visual Studio Team System (unlike Visual Studio Standard or Professional editions) has the command line switch /analyze. This switch allows you to launch the static analysis module integrated into Team System to search for some errors in code.

Static analysis in Team System can be enabled not only from the command line but from the shell as well. To do so you should choose the tab Configuration Properties->C/C++->Advanced and enable "Enable Code Analysis For C/C++" as shown in the figure.

0050_Visual_Studio_Team_System,_analyze_and_D9040/image1.png

This static analysis is rather good and really allows you to find problems in code. But this all is so until you get the message D9040:

Command-Line Warning D9040

Error Message

ignoring option '/analyze'; Code Analysis warnings are not available in this edition of the compiler

The /analyze command line option is supported only on x86 versions of Visual Studio Team System. It is not available for x64 or Itanium compilers, or for other versions of Visual Studio besides Visual Studio Team System. To remedy this warning, either switch to the x86 version of Visual Studio Team System, or remove the command line option.

Alas, the option /analyze that has only begun to grow popular among programmers is not available for x64 and Itanium compilers. And more of it, this limitation is present both in Visual Studio 2005 and Visual Studio 2008.

That is why, if you need to use static analysis when working with x64 and Itanium compilers there is only one way - use a third-party tool. For example, Viva64 code analyzer included into PVS-Studio that supports both x64 and Itanium platforms besides x86.

Popular related articles


Comments (0)

Next comments next comments
close comment form