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

fatal error "modbus.c" not found

Dear Sir

I add a modbus.c file to Example/User on project. In main.c i #include "modbus.c", but an fatal error "modbus.c" file not found happened.

could you please teach me how can i solve it.

Thanks you very much.

Parents
  • Maybe you could tell us what book recommends "include" of a *.c file?

    Good books would describe the difference between *.c and *.h (i.e. header files).

    Next thing - the compiler requires the existence of the files. And the compiler manual describes where the compiler will look for files.

Reply
  • Maybe you could tell us what book recommends "include" of a *.c file?

    Good books would describe the difference between *.c and *.h (i.e. header files).

    Next thing - the compiler requires the existence of the files. And the compiler manual describes where the compiler will look for files.

Children