Skip to content

Commit aa9254f

Browse files
authored
Merge pull request MicrosoftDocs#2468 from corob-msft/cr-1639-c1049
Add Fatal Error C1049 docs per 1639
2 parents adedeed + 91df242 commit aa9254f

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

docs/error-messages/compiler-errors-1/compiler-fatal-errors-c999-through-c1999.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: "Compiler fatal errors C999 through C1999"
33
ms.date: "04/21/2019"
4-
f1_keywords: ["C1034", "C1036", "C1041", "C1048", "C1049", "C1063", "C1069", "C1101", "C1102", "C1105", "C1110", "C1111", "C1112", "C1114", "C1193", "C1195", "C1300", "C1301", "C1302", "C1306", "C1384", "C1451", "C1505", "C1901"]
5-
helpviewer_keywords: ["C1034", "C1036", "C1041", "C1048", "C1049", "C1063", "C1069", "C1101", "C1102", "C1105", "C1110", "C1111", "C1112", "C1114", "C1193", "C1195", "C1300", "C1301", "C1302", "C1306", "C1384", "C1451", "C1505", "C1901"]
4+
f1_keywords: ["C1034", "C1036", "C1041", "C1048", "C1063", "C1069", "C1101", "C1102", "C1105", "C1110", "C1111", "C1112", "C1114", "C1193", "C1195", "C1300", "C1301", "C1302", "C1306", "C1384", "C1451", "C1505", "C1901"]
5+
helpviewer_keywords: ["C1034", "C1036", "C1041", "C1048", "C1063", "C1069", "C1101", "C1102", "C1105", "C1110", "C1111", "C1112", "C1114", "C1193", "C1195", "C1300", "C1301", "C1302", "C1306", "C1384", "C1451", "C1505", "C1901"]
66
ms.assetid: 6c8df109-7594-48ed-987a-97d9fe2b04af
77
---
88
# Compiler fatal errors C999 through C1999
@@ -48,7 +48,7 @@ The articles in this section of the documentation explain a subset of the error
4848
|[Fatal error C1046](../../error-messages/compiler-errors-1/fatal-error-c1046.md)|compiler limit: *structure* nested too deeply|
4949
|[Fatal error C1047](fatal-error-c1047.md)|The object or library file '*file*' was created with an older compiler than other objects; rebuild old objects and libraries|
5050
|Fatal error C1048|unknown option '*string*' in '*option*'|
51-
|Fatal error C1049|invalid numerical argument '*value*'|
51+
|[Fatal error C1049](fatal-error-c1049.md)|invalid numerical argument '*value*'|
5252
|[Fatal error C1051](../../error-messages/compiler-errors-1/fatal-error-c1051.md)|program database file, '*file*', has an obsolete format, delete it and recompile|
5353
|[Fatal error C1052](fatal-error-c1052.md)|program database file, '*filename*', was generated by the linker with /DEBUG:fastlink; compiler cannot update such PDB files; please delete it or use /Fd to specify a different PDB filename|
5454
|[Fatal error C1053](fatal-error-c1053.md)|'*function*': function too large|
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "Fatal Error C1049"
3+
description: "Describes compiler fatal error C1049, invalid numerical argument, and explains how to resolve it."
4+
ms.date: "11/04/2019"
5+
f1_keywords: ["C1049"]
6+
helpviewer_keywords: ["C1049"]
7+
---
8+
# Fatal Error C1049
9+
10+
> invalid numerical argument '*value*'
11+
12+
The CL.EXE command-line parser found *value* where it was expecting a numerical argument.
13+
14+
A C1049 error may occur when the compiler can’t find a numerical argument for one of these compiler options:
15+
16+
[/constexpr:depth](/cpp/build/reference/constexpr-control-constexpr-evaluation)\
17+
[/constexpr:backtrace](/cpp/build/reference/constexpr-control-constexpr-evaluation)\
18+
[/constexpr:steps](/cpp/build/reference/constexpr-control-constexpr-evaluation)
19+
20+
Command-line compiler options that expect a numerical argument may also report `Command line error D8004`, `Command line error D8021`, `Command line warning D9002`, `Command line warning D9014`, or `Command line warning D9024`.
21+
22+
To resolve this error, examine the command line for misplaced or missing arguments. Verify there's no unexpected whitespace between options and arguments. The final command line may be generated by macros, environment variables, or other build system operations. That's why it's important to look at the actual command line passed to the compiler.
23+
24+
- In command files or makefiles, you can use an **echo** command to report the actual command line.
25+
26+
- In Visual Studio, open your project's **Property Pages** dialog. On the **Configuration Properties** > **C/C++** > **General** page, change the **Suppress Startup Banner** property to **No**. Choose **OK** to save your changes. The **Output** window now shows the command line when you build, right after the copyright line.
27+
28+
Other build systems may have log files or verbose options, to see the actual commands used. For information, check your build system documentation.

docs/error-messages/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@
141141
href: compiler-errors-1/fatal-error-c1046.md
142142
- name: fatal error C1047
143143
href: compiler-errors-1/fatal-error-c1047.md
144+
- name: fatal error C1049
145+
href: compiler-errors-1/fatal-error-c1049.md
144146
- name: fatal error C1051
145147
href: compiler-errors-1/fatal-error-c1051.md
146148
- name: fatal error C1052

0 commit comments

Comments
 (0)