Question

I have a project which includes two source files and one header file (wich contains the prototype of a function defined in one of the source files named Get.c), the problem is:

when I include the Get.c in the other source file, it gives me the error

error : Get.c: No such file or directory ?, even when I have all the three files in one directory. ---I use dev-cpp - .

Was it helpful?

Solution

In C you should be including the interface file (.h file), not the C source file (.c file). Create an interface for your module and include it respectively.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top