This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile Error with Custom putchar

Note: This was originally posted on 5th January 2012 at http://forums.arm.com

Hello,

I am  new to ARM and uVision and have my first  problem.

The firmware i am trying to compile used to work with old compiler but fails with the new compiller ARMCC V3.0.0.947 using uVision 3.34

It does not like my own putchar, i get following errors...

comms.h(74): error:  #79: expected a type specifier  ........this is my prototype
comms.c(3866): error:  #79: expected a type specifier
comms.c(3866): error:  #141-D: unnamed prototyped parameters not allowed when body is present

The prototype in H file is....

int putchar(int Inch);        This is at line 74 of include file

the first line if the function is..

int putchar(int Inch)         This is at line 3886 of source file
{

}

Please tell me what is going wrong

Nick
0