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

Using C header file in an assembly file

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

Parents
  • "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!

Reply
  • "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!

Children
No data