How can I compile memcached-1.4.7's source code if I made some change?

617 views Asked by At

I modified the source code of memcached-1.4.7, but I got stuck when I tried to compile the new code.

I add two files (test.c and test.h) to the source. I modified items.c to call some function provided by test.c. Now I would like to compile the new code. What should I do?

Thanks!

1

There are 1 answers

1
Employed Russian On BEST ANSWER

Before you try to modify any open-source package, you should always try to build a "pritisine" copy first. Usually that's achieved by

./configure && make

So make another copy of the original source, and build that. Then you can try your modifications.