Skip to content

Commit 4d28898

Browse files
Fix links, header syntax issues
1 parent 21e55dd commit 4d28898

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/build/reference/zc-externc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: /Zc:externC (Use Standard C++ extern "C" rules)"
3-
title: "/Zc:externC (Use Standard C++ extern "C" rules)"
2+
description: 'Learn more about: /Zc:externC (Use Standard C++ extern "C" rules)'
3+
title: '/Zc:externC (Use Standard C++ extern "C" rules)'
44
ms.date: 12/02/2021
55
f1_keywords: ["/Zc:externC"]
66
helpviewer_keywords: ["-Zc:externConstexpr compiler option (C++)", "extern constexpr variables (C++)"]
@@ -21,7 +21,7 @@ The **`/Zc:externC`** compiler option checks the definitions of functions declar
2121

2222
The **`/Zc:externC`** option is available starting in Visual Studio 2019 version 16.3. It's off when the [`/permissive-`](permissive-standards-conformance.md) option isn't set. In earlier versions of Visual Studio, and by default or if **`/Zc:externC-`** is specified, Visual Studio is permissive about matching declarations of `extern "C"` functions. The **`/permissive-`** option enables **`/Zc:externC`**, so it's on by default in projects that use **`/std:c++20`** or **`/std:c++latest`**. The **`/Zc:externC`** option must come after a **`/permissive-`** option on the command line.
2323

24-
Mismatched `extern "C"` declarations can cause compiler errors [C2116](../../error-messages/compiler-errors-1/compiler-error-c2116.md) and [C2733](../../error-messages/compiler-errors-1/compiler-error-c2733.md). In C++ code, an error can occur if you declare an `extern "C"` function more than once and use different parameter types, even if the types have the same definitions. The **`/Zc:externC-`** option relaxes this check, and doesn't produce these errors.
24+
Mismatched `extern "C"` declarations can cause compiler errors [C2116](../../error-messages/compiler-errors-1/compiler-error-c2116.md) and [C2733](../../error-messages/compiler-errors-2/compiler-error-c2733.md). In C++ code, an error can occur if you declare an `extern "C"` function more than once and use different parameter types, even if the types have the same definitions. The **`/Zc:externC-`** option relaxes this check, and doesn't produce these errors.
2525

2626
### To set this compiler option in Visual Studio
2727

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ This error may occur after an upgrade because of conformance changes in Visual S
2020

2121
## See also
2222

23-
[Compiler Error C2733](compiler-error-c2733.md)\
23+
[Compiler Error C2733](../compiler-errors-2/compiler-error-c2733.md)\
2424
[`extern` (C++)](../../cpp/extern-cpp.md)\
2525
[`/Zc:externC` (Use Standard C++ `extern "C"` rules)](../../build/reference/zc-externc.md)

docs/error-messages/compiler-errors-2/compiler-error-c2733.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ extern "C" {
3333
3434
## See also
3535
36-
[Compiler Error C2116](compiler-error-c2116.md)\
36+
[Compiler Error C2116](../compiler-errors-1/compiler-error-c2116.md)\
3737
[`extern` (C++)](../../cpp/extern-cpp.md)\
3838
[`/Zc:externC` (Use Standard C++ `extern "C"` rules)](../../build/reference/zc-externc.md)

0 commit comments

Comments
 (0)