Domanda

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 - .

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top