PRB: C4047 May Occur When a Function Prototype Is Omitted

ID: Q34859


The information in this article applies to:


SYMPTOMS

An attempt to compile an application generates the following message:

C4047 'operator' : different levels of indirection


CAUSE

Here are some items that might cause this error:

When the code omits the function declaration/prototype, the compiler creates a default prototype with "int" the assumed return type. When you use the function the C4047 warning may occur; for example, if you assign the function return value to a variable other than an int.


RESOLUTION

Modify the source code to eliminate the cause of the problem.

Additional query words: 8.00 8.00c 9.00


Keywords          : kbCompiler kbVC100 kbVC150 kbVC200 kbVC400 kbVC500 kbVC600 
Version           : 6.0 6.0a 6.0ax 7.0 1.0 1.5 2.0 4
Platform          : 
Issue type        : kbprb 

Last Reviewed: July 5, 1999