Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
armlink Error: L6218E: Undefined symbol...
Jump...
Cancel
Locked
Locked
Replies
7 replies
Subscribers
119 subscribers
Views
9159 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
armlink Error: L6218E: Undefined symbol...
Abhash Das
over 12 years ago
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 6th July 2009 at
http://forums.arm.com
> In a C file if some function not used why RVCT generate symbol for that.
If the function is static, then there won't be. Non-static functions are assumed to be exported so they are visible to other objects.
You should ideally make non-exported functions in a translation unit static - they normally can be optimized more =)
> I think there should be some compiler or linker switch to compress this kind of error or to instruct RVCT not to generate symbol for that.
Or you could just fix the C code =)
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 6th July 2009 at
http://forums.arm.com
> In a C file if some function not used why RVCT generate symbol for that.
If the function is static, then there won't be. Non-static functions are assumed to be exported so they are visible to other objects.
You should ideally make non-exported functions in a translation unit static - they normally can be optimized more =)
> I think there should be some compiler or linker switch to compress this kind of error or to instruct RVCT not to generate symbol for that.
Or you could just fix the C code =)
Cancel
Vote up
0
Vote down
Cancel
Children
No data