some Times I receive this message then I know that I didn't
include the file that contain the func.
But some times I receive it although I did the #Include.
What's the problem here???
some Times I receive this message then I know that I didn't
include the file that contain the func.
But some times I receive it although I did the #Include.
What's the problem here???
Well then either:
A) It's your own function, and you have no protoype for it
or
B) You included the wrong header
As Ken said, it sounds like you aren't including the proper header files, or you aren't declaring your function prototypes.
Can you post an example of some code that gets those errors?
>some Times I receive this message then I know that I didn't
>include the file that contain the func.
>But some times I receive it although I did the #Include.
You write: the file that contains the function. You don't mean you're including a C file do you?
Some possible reasons:
1. In function A you are calling function B, but function A is placed before function B in the code. In that case the compiler doesn't know about function B when compiling function A.
2. In file A you are calling a certain function placed in file B, but you haven't declared that function with "extern" prototype in file A.
Put all your prototypes in a single include file, called say Include.h
#include "Include.h" in all files in the project.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill