Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Warning (level 4) C4562

Visual Studio .NET 2003

fully prototyped functions are required with the '/clr' option: converting '()' to '(void)'

Function prototypes should be fully defined when compiling a C source code file using the /clr compiler option. The compiler automatically converts empty parameter lists to void. The following sample generates C4562:

// C4562.cpp
// compile with: /clr /W4 /Tc
int main() {   // C4562, use (void) instead of () to resolve
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.