Skip to content

Commit 3e19097

Browse files
authored
Merge pull request #4978 from Rageking8/update-c2537
Update C2537
2 parents 8f56486 + f46424d commit 3e19097

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
---
22
description: "Learn more about: Compiler Error C2537"
33
title: "Compiler Error C2537"
4-
ms.date: "11/04/2016"
4+
ms.date: "03/08/2024"
55
f1_keywords: ["C2537"]
66
helpviewer_keywords: ["C2537"]
7-
ms.assetid: aee81d8e-300e-4a8b-b6c4-b3828398b34e
87
---
98
# Compiler Error C2537
109

1110
'specifier' : illegal linkage specification
1211

13-
Possible causes:
14-
15-
1. The linkage specifier is not supported. Only the "C" linkage specifier is supported.
16-
17-
1. "C" linkage is specified for more than one function in a set of overloaded functions. This is not allowed.
12+
The linkage specifier is not supported. Only the "C" and "C++" linkage specifiers are supported.
1813

1914
The following sample generates C2537:
2015

2116
```cpp
2217
// C2537.cpp
2318
// compile with: /c
24-
extern "c" void func(); // C2537
19+
extern "c" void func1(); // C2537
2520
extern "C" void func2(); // OK
21+
extern "C++" void func3(); // OK
2622
```

0 commit comments

Comments
 (0)