add a file.c in a program.

Hi

I've written a new function for a program.
I have the new_function.c, new_function.h and the new_function.o and I've added those 3 files in the same directory of the others files.
Then in the file.c (that use the new_function.c), I added:

#include "new_function.h"

then i try to do:

./configure ........... ok

but the "make" return with:

926: undefined reference to `function_added'

where "function_added" is defined and implemented in new_function.h and new_function.c.

This is the first time for me, but i read that what i've done should be enough.
Any idea why doesn't work?
Thanks

D.

It is not linking new_function.o in with the rest of the objects. I believe you need to edit Makefile.in, then run ./configure again to make the changes stick.

Hi
i found the solution.

I've added to Makefile.in and Makefile.source the files i created.

Now it works!!

Thanks

D