Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.09 KB

compiler-error-c2116.md

File metadata and controls

25 lines (18 loc) · 1.09 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2116
Compiler Error C2116
12/02/2021
C2116
C2116
0089a23f-e6bd-4956-9b58-3bcca09ab5ad

Compiler Error C2116

function parameter lists do not match between declarations

The parameter list of a redeclared function doesn't match the parameter list used in an earlier declaration.

Remarks

This error can occur if you use different types for the parameters when you redeclare an extern "C" function.

This error may occur after an upgrade because of conformance changes in Visual Studio 2019. Starting in Visual Studio 2019 version 16.3, the /Zc:externC- compiler option relaxes this check. The option must come after any /permissive- option on the command line.

See also

Compiler Error C2733
extern (C++)
/Zc:externC (Use Standard C++ extern "C" rules)