إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
linkage specification contradicts earlier specification for 'function'
Remarks
The function is already declared with a different linkage specifier.
This error can be caused by include files with different linkage specifiers.
To fix this error, change the extern statements so that the linkages agree. In particular, do not wrap #include directives in extern "C" blocks.
Example
The following example generates C2732:
// C2732.cpp
extern void func( void ); // implicit C++ linkage
extern "C" void func( void ); // C2732