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

Trying to debug include files

i have a main program with some include files, and i want to debug this files as well as the main program and use breakpoinds.
Anyone knows how to do this???
Thanks

Parents
  • Javier,

    This problem is again, one that has only to do with basic C programming. Anything that allocates space is a DEFINITION. This means that any place you have an "=" after a variable to initialize it is a definition. So... you need to have the line

    unsigned char tecla='N';

    in only ONE file and then

    extern unsigned char tecla;

    in all the other files that use this variable. If the "=" are in all the files, then the linker will rightfully continue to complain about multiple definitions.

Reply
  • Javier,

    This problem is again, one that has only to do with basic C programming. Anything that allocates space is a DEFINITION. This means that any place you have an "=" after a variable to initialize it is a definition. So... you need to have the line

    unsigned char tecla='N';

    in only ONE file and then

    extern unsigned char tecla;

    in all the other files that use this variable. If the "=" are in all the files, then the linker will rightfully continue to complain about multiple definitions.

Children