We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How do I use a c header file in an assembly file? When I use: #include "xxx.h" I get the invalid line start error. Please help
What makes you think that you should be able to?
Take a look at this www.arm.com/.../1208.html The question is realview tool set for keil is "real"view?
Take a look at this www.arm.com/.../1208.html But it says it only applies to #include and #define - so you can't just go using any 'C' header willy-nilly in your assembler!
You are right. but it shouldn't generate that error. looks like the assember doesn't understand what # is
"but it shouldn't generate that error."
Why not?
"looks like the assember doesn't understand what # is"
Quite possibly not - it understands what #define is, and what #include is, but nothing else. Therefore, any line that starts with a # that is not followed by "define" or "include" will produce an error - and "invalid line start" sounds like a perfectly good name for that error!