नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'identifier1' has C-linkage specified, but returns UDT 'identifier2' which is incompatible with C
Remarks
A function or pointer to function has a UDT (user-defined type, which is a class, structure, enum, or union) as return type and extern "C" linkage. This is legal if:
All calls to this function occur from C++.
The definition of the function is in C++.
Example
The following example generates C4190:
// C4190.cpp
// compile with: /W1 /LD
struct X
{
int i;
X ();
virtual ~X ();
};
extern "C" X func (); // C4190