RSS
Follow Us
Contribute
 
 
 
 

Error C2054: expected '(' to follow (identifier)

 
We need YOUR SKILLS in this collaborative work, to build the largest solution center for error messages.

From $1

Table of contents
  1. 1. Cause
  2. 2. Solution
  3. 3. About This Article

Cause

The function identifier is used in a context that requires trailing parentheses. This error also can be caused by omitting an equal sign (=) on a complex initialization.

int array1[] { 1, 2, 3 };   // C2054, missing =

Solution

Add the necessary equal sign (=) of the statement.

int array1[] = { 1, 2, 3 };

About This Article

This article is a derivative work based on Compiler Error C2054 which is provided by MSDN Community Content - Visual C++.

 
 
 
 
Comments