Fix Visual Studio Warning Level Error: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "I will write this article later, please don't delete it")
 
m (Cleanup)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
I will write this article later, please don't delete it
{{Metanotice
| rgb = 235, 185, 23
| id = [[File:Warning_icon.png|32px|link=]]
| text = Warning: Work in Progress ([[User:Wtrace3zh]])
| style = margin: 5px 0px 5px 0px; padding:0.5em
}}
 
== What is it? ==
 
If your warning level is set too high when building {{Srcsdk13|4|nt=0}} under {{Visual Studio|4|nt=2}}, some negligible errors will be taken seriously by the compiler.
 
These errors can be ignored, but {{Visual Studio|3.1}} doesn't think so.
 
 
If your warning level is set to {{Code|Level 3 (/W3)}}, which is the default, {{Visual Studio|3.1}} will not let {{VPC|4}} continue to generate {{Path|client|dll|icon=file}} or {{Path|server|dll|icon=file}} when building.
 
Although all the [[OBJ]] files in the project will be generated, the compiler will still not call {{VPC|3.1}} to generate the final files we want because it thinks these errors are serious and cannot be ignored.
 
 
{{Microsoft|4}} has also published articles explaining this. Please click this link to visit the official {{Microsoft|3.1}} article: [https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4800?view=vs-2015 Compiler Warning (level 3) C4800]

Latest revision as of 00:14, 24 October 2025

Warning icon.png
Warning: Work in Progress (User:Wtrace3zh)

What is it?

If your warning level is set too high when building Source SDK Base 2013 Source SDK 2013 under Visual Studio Visual Studio 2013, some negligible errors will be taken seriously by the compiler.

These errors can be ignored, but Visual Studio doesn't think so.


If your warning level is set to Level 3 (/W3), which is the default, Visual Studio will not let VPC VPC continue to generate Fileclient.dll or Fileserver.dll when building.

Although all the OBJ files in the project will be generated, the compiler will still not call VPC to generate the final files we want because it thinks these errors are serious and cannot be ignored.


Microsoft Microsoft has also published articles explaining this. Please click this link to visit the official Microsoft article: Compiler Warning (level 3) C4800