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

External .c files

Hi all,

I am using the PK51 compiler and I'm having a strange issue, when I create a main.c file with my main function in here and all other functions in this file I can single step all of my code into the different functions etc.
But If I put some of these functions into an external .c file and include this from my main.c file I can no longer single step my code in debug, for example I cannot set breakpoints in my other.c file.

Does anyone know how to solve this issue?

Eoin

Parents
  • C wouldn't have the distinction between header files (*.h) and "normal" c source files (*.c) if it was intended that you should include *.c files.

    Have you seen many C textbooks recommending #include of *.c files?

    Have you tought about why the IDE supports adding of multiple *.c files to the project, if #include would be the preferred way?

Reply
  • C wouldn't have the distinction between header files (*.h) and "normal" c source files (*.c) if it was intended that you should include *.c files.

    Have you seen many C textbooks recommending #include of *.c files?

    Have you tought about why the IDE supports adding of multiple *.c files to the project, if #include would be the preferred way?

Children