Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top