On Fri, 2003-11-21 at 20:49, Amerson wrote:

> doall.cpp is found in   /home/gaimfs
> Crypt++ version 5.1 found in:    /home/gaimfs/crypto51  (downloaded
> crypto++ 5.1 zip file and compiled)
> cryptest -v works fine, all tests pass
> OS: redhat linux 8.0
> 
> I run g++ -Icrypto51 doall.cpp and it gives me this bunch of errors:

Consider the command that you gave to compile doall.cpp. You tell g++
that it must compile doall.cpp with the include flag for the path to the
crypto++ files. That is fine for finding the header files and doing the
preprocessing and compiling but it fails on linking. Your command does
nothing to tell g++ where to resolve the symbols created from the
headers you linked in from crypto++. You must tell g++ where to find the
libraries you need with the -L flag and the libraries you need by the -l
flag.

Given your setup try:

cd /home/gaimfs
g++ -Icrypto51 -Lcrypto51 -lcryptopp -o doall doall.cpp

This will result in the binary 'doall' being in the /home/gaimfs
directory.

Stephen
-- 
Stephen Torri
GPG Key: http://www.cs.wustl.edu/~storri/storri.asc

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to