Where is there the function definition?! Or you think the compiler shall invent it itself instead of you?
The linker can't find the definition of add. Where is it?
is it the " int add (int x, int y);" line?
No that's a declaration. The definition is where you write what the function should do.
What are you going to change?! You have to define this function. Nobody knows what it should do except you.
Maybe. I do not know beacuse neither me nor the compiler see the function definition.
Stop bla, bla, bla. Define the function!
Last edited on
look at lines 7-10 to how define a function
thanks , it finally worked