Arm Community
Site
Search
User
Site
Search
User
Groups
Research Collaboration and Enablement
DesignStart
Education Hub
Innovation
Open Source Software and Platforms
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello Forum
Operating Systems forum
SoC Design and Simulation forum
中文社区论区
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Innovation blog
Internet of Things (IoT) blog
Operating Systems blog
Research Articles
SoC Design and Simulation blog
Tools, Software and IDEs blog
中文社区博客
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Arm Development Studio forum
Compile Error with Custom putchar
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
121 subscribers
Views
4684 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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
Offline
Nick Purdue
over 9 years ago
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
Offline
Scott Douglass
over 9 years ago
Note: This was originally posted on 5th January 2012 at
http://forums.arm.com
It might be that there's some '#define Inch ...' or -DInch=... that's interfering.
Cancel
Up
0
Down
Cancel
Offline
Nick Purdue
over 9 years ago
Note: This was originally posted on 5th January 2012 at
http://forums.arm.com
It might be that there's some '#define Inch ...' or -DInch=... that's interfering.
No that not it, it seems to be to do with i am re-defining putchar and that its already in "stdio.h" but i thought you could do that, i have also changed the Inch to just ch to match the putchar in "stdio.h"
Cancel
Up
0
Down
Cancel
Offline
Scott Douglass
over 9 years ago
Note: This was originally posted on 5th January 2012 at
http://forums.arm.com
Oh, yes. It's puchar itself that's the #define -- but I should have looked at the larger context before answering.
If you want to intercept stdio you want to use the "retargeting" interface. For example
http://www.keil.com/...argetcortex.htm
Cancel
Up
0
Down
Cancel