Muokkaa

Jaa


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)