md5 problems

Tarc tarc at po.cs.msu.su
Thu Nov 25 02:55:33 PST 2004


On Fri, Oct 15, 2004 at 11:31:50AM +0100, Xian wrote:
> I am trying to compile a program using md5 and I had some problems. So I made 
> a test program to see if I was using it properly, and it still doesn't work. 
> ...
> The problem is it won't compile giving:
> [ian at hercules:~/devel] %g++ md5.cpp -o md5
> /tmp/cc8WdTS0.o: In function `main':
> /tmp/cc8WdTS0.o(.text+0x57): undefined reference to `MD5Data'
> 
> It looks like I am missing a .o file or something. I am reasonably new to C++ 
> so any kind of help will be much appreciated.
You forget add the libmd with compilation (see manuals)
try
%g++ md5.cpp -o md5 -lmd


More information about the freebsd-questions mailing list