Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Good morning to everyone. I got one serious error of "Constructor syntax missing formal parameters". this error comes in the structure using c
Posted
Comments
R. Giskard Reventlov 1-Jul-10 7:27am    
Is there a question in there?
CPallini 1-Jul-10 7:31am    
Please show us the code.
Smithers-Jones 1-Jul-10 7:35am    
Reason for my vote of 1
And? Details, man!
[no name] 1-Jul-10 7:45am    
Can you please throw light on your question by giving code or more detail?
So that we can give answer properly.
Aescleal 1-Jul-10 7:45am    
I'm not sure how people on here have access to a C99 compiler i.e. one that supports constructor style initialisation in C. Perhaps if you posted the code and the compiler you're using you might get some answers!

please show a code snippet so we can help.
 
Share this answer
 
You're probably missing the parenthesis in your constructor definition.

You probably have this :

MyClass::MyClass
{
}

instead of this :

MyClass::MyClass()
{
}
 
Share this answer
 
Comments
CPallini 1-Jul-10 8:22am    
You're probably missing the programming language... ;P

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900