![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
Joris H
Joined: 24 Sep 2003 Posts: 14
|
What do I do wong? |
Posted: Sat Feb 04, 2006 9:02 am |
|
|
Recently I upgraded the compiller from 3.202 to 3.242.
now I get different error's when I compill my program
I am stuck with this:
Function defined in .h : void Change_GETAL(int val,int max,int c);
Function: void Change_Getal(int val,int max,int c)
{........}
error:
void select_phone()
{ int temp = 1;
.......
temp= Change_GETAL(temp,2,1);
The last ) is highlighted with the message "a numeric expression must appear here"
it also looks that the different #included files are opened 2x with a error message "function defiition differt from previous definition" |
|
![](templates/subSilver/images/spacer.gif) |
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Sat Feb 04, 2006 10:48 am |
|
|
In the function prototype you've declared the type and name of the used
parameters and if the function will return a variable or not. (void)
void Change_GETAL(int val,int max,int c);
Then in main you call this function expecting for some return...
temp= Change_GETAL(temp,2,1);
and the compiler point you the mistake:
Quote: |
"function definition differt from previous definition"
|
Conclusion:
The function used must be of the same type declared in functions prototypes.
Humberto |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|