Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C3874

Error Message

return type of 'function' should be 'int' instead of 'type'

A function does not have the return type that was expected by the compiler.

The following sample generates C3874:

// C3874b.cpp
double main()
{   // C3874

Community Additions

© 2015 Microsoft