Skip to content

Commit fd253ec

Browse files
authored
Merge and extend example in C2014 error reference
1 parent 2ac6d8f commit fd253ec

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2014.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ The following example generates C2014:
1919

2020
```cpp
2121
// C2014.cpp
22-
int k; #include <stdio.h> // C2014
23-
```
22+
// compile with: /c
2423

25-
Possible resolution:
24+
int a; #define A // C2014
2625

27-
```cpp
28-
// C2014b.cpp
29-
// compile with: /c
30-
int k;
31-
#include <stdio.h>
26+
int b;\
27+
#define B // C2014
28+
29+
int c;
30+
#define C // OK
3231
```

0 commit comments

Comments
 (0)