From owner-freebsd-questions@FreeBSD.ORG Thu Nov 25 10:55:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EF5516A4CE for ; Thu, 25 Nov 2004 10:55:33 +0000 (GMT) Received: from tarc.po.cs.msu.su (tarc.po.cs.msu.su [158.250.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54FAE43D60 for ; Thu, 25 Nov 2004 10:55:32 +0000 (GMT) (envelope-from root@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (localhost [127.0.0.1]) by tarc.po.cs.msu.su (8.13.1/8.13.1) with ESMTP id iAPAtQlX006564 for ; Thu, 25 Nov 2004 13:55:26 +0300 (MSK) (envelope-from root@tarc.po.cs.msu.su) Received: (from root@localhost) by tarc.po.cs.msu.su (8.13.1/8.13.1/Submit) id iAPAtQu5006563 for freebsd-questions@freebsd.org; Thu, 25 Nov 2004 13:55:26 +0300 (MSK) (envelope-from root) Date: Thu, 25 Nov 2004 13:55:26 +0300 From: Tarc To: freebsd-questions Message-ID: <20041125105526.GA6346@tarc.po.cs.msu.su> References: <200410151131.50690.ian@codepad.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410151131.50690.ian@codepad.net> User-Agent: Mutt/1.5.6i Subject: Re: md5 problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: tarc@mail.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2004 10:55:33 -0000 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@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