Skip to content

Latest commit

 

History

History
53 lines (48 loc) · 1.04 KB

compiler-error-c2537.md

File metadata and controls

53 lines (48 loc) · 1.04 KB
title Compiler Error C2537 | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic error-reference
f1_keywords
C2537
dev_langs
C++
helpviewer_keywords
C2537
ms.assetid aee81d8e-300e-4a8b-b6c4-b3828398b34e
caps.latest.revision 8
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Compiler Error C2537

'specifier' : illegal linkage specification

Possible causes:

  1. The linkage specifier is not supported. Only the "C" linkage specifier is supported.

  2. "C" linkage is specified for more than one function in a set of overloaded functions. This is not allowed.

The following sample generates C2537:

// C2537.cpp  
// compile with: /c  
extern "c" void func();   // C2537  
extern "C" void func2();   // OK