Compiling an open-source memory error-detection tool.
by edhe1 from LinuxQuestions.org on (#5MENS)
I am compiling a program - memwatch - written by Johan Lindh; that is an open-source memory error-detection tool. (https://www.golinuxcloud.com/how-to-find-memory-leaks/)
MEMWATCH supports ANSI C; provides a log of the results; and detects double frees, erroneous frees, unfreed memory, overflow and underflow, and so on.
I was cautioned to not do this as root, so as user I followed the instructions; and was stopped after:
gcc -DMEMWATCH -DMW_STDIO memory1.c memwatch.c -o memory1
The error message:
edhe@edhe-HP:~/Downloads/memwatch-2.71$ gcc -DMEMWATCH -DMW_STDIO memory1.c memwatch.c -o memory1
gcc: error: memory1.c: No such file or directory
The web page developer acknowledged my problem; but has not replied with a solution.
Any helpful replies?
MEMWATCH supports ANSI C; provides a log of the results; and detects double frees, erroneous frees, unfreed memory, overflow and underflow, and so on.
I was cautioned to not do this as root, so as user I followed the instructions; and was stopped after:
gcc -DMEMWATCH -DMW_STDIO memory1.c memwatch.c -o memory1
The error message:
edhe@edhe-HP:~/Downloads/memwatch-2.71$ gcc -DMEMWATCH -DMW_STDIO memory1.c memwatch.c -o memory1
gcc: error: memory1.c: No such file or directory
The web page developer acknowledged my problem; but has not replied with a solution.
Any helpful replies?