Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4829

'function': parameters of gc type or value type not supported; standard 'function' signature required

Certain functions, such as main, cannot take parameters of __gc types. While compilation will succeed, the resulting image will probably not run.

The following sample generates C4829:

// C4829.cpp
// compile with: /clr /W1 /link /entry:main
#using <mscorlib.dll>
using namespace System;

int main(String*s[])
{   // C4829
}
Show:
© 2015 Microsoft