Aug 8, 2013 at 8:49am
Where is there the function definition?! Or you think the compiler shall invent it itself instead of you?
Aug 8, 2013 at 8:49am
The linker can't find the definition of add. Where is it?
Aug 8, 2013 at 9:06am
is it the " int add (int x, int y);" line?
Aug 8, 2013 at 9:09am
No that's a declaration. The definition is where you write what the function should do.
Aug 8, 2013 at 9:17am
What are you going to change?! You have to define this function. Nobody knows what it should do except you.
Aug 8, 2013 at 9:28am
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 Aug 8, 2013 at 9:28am
Aug 8, 2013 at 9:48am
look at lines 7-10 to how define a function
Aug 9, 2013 at 7:35am
thanks , it finally worked