Article 5MENS Compiling an open-source memory error-detection tool.

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?latest?d=yIl2AUoC8zA latest?i=2SedkXqgqzs:7iIGaE7MLj4:F7zBnMy latest?i=2SedkXqgqzs:7iIGaE7MLj4:V_sGLiP latest?d=qj6IDK7rITs latest?i=2SedkXqgqzs:7iIGaE7MLj4:gIN9vFw2SedkXqgqzs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments