Is anyone else having a problem with CryptoPP::HAVAL::vTransform during 
linking?

----- Forwarded message from "Agrawal, Vikas (ELS)" <[EMAIL PROTECTED]> -----

Date: Fri, 28 Mar 2003 13:30:50 -0000
From: "Agrawal, Vikas (ELS)" <[EMAIL PROTECTED]>
To: 'Wei Dai' <[EMAIL PROTECTED]>
Subject: RE: ld: 0711-317 ERROR: Undefined symbol: CryptoPP::HAVAL::vTrans
         form

Wei,

I noticed on your web site that you haven't included our e-mail conversation
in your user archive. The solution mentioned below really worked for me on
AIX with GCC 3.2.1 compiler. I have solved the HAVAL problem as well by
taking HAVAL benchmark test out of bench.cpp and not compiling haval.cpp at
all.

I think solution I found would help lot of people since I can see lot of
people have same problem on AIX as well as MAC.

Thanks & Regards
Vikas Agrawal
http://www.vikas.tv

-----Original Message-----
From: Wei Dai [mailto:[EMAIL PROTECTED]
Sent: 17 March 2003 18:28
To: Agrawal, Vikas (ELS)
Subject: Re: ld: 0711-317 ERROR: Undefined symbol:
CryptoPP::HAVAL::vTrans form


I don't know how to help you with that one. One thing you might want to 
try if you can't figure it out is to switch to GNU ld, which is installed 
with GNU binutils.

On Fri, Mar 14, 2003 at 03:40:03PM -0000, Agrawal, Vikas (ELS) wrote:
> Hi,
> 
> I just tried couple of things and it helped me a lot but still last one
> remains. Could you suggest me how to get rid of it?
> error is 
> g++ -o cryptest.exe -g -pipe bench.o test.o validat1.o validat2.o
validat3.o
> -L. -lcryptopp  
> ld: 0711-317 ERROR: Undefined symbol: CryptoPP::HAVAL::vTransform(unsigned
> long const*)
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make: *** [cryptest.exe] Error 1
> 
> I have added following things in folloiwng cpp file to get rid of other
> errors.
> algebra.cpp
> ------------------
> template class AbstractGroup<Integer>;
> 
> ec2n.cpp
> ---------------------------
> template class AbstractGroup<PolynomialMod2>;
> template class AbstractRing<PolynomialMod2>;
> template class AbstractEuclideanDomain<PolynomialMod2>;
> 
> gf2n.cpp
> -----------------------
> template class QuotientRing<EuclideanDomainOf<PolynomialMod2> >;
> 
> Thanks & Regards
> Vikas
> 
> 
> -----Original Message-----
> From: Wei Dai [mailto:[EMAIL PROTECTED]
> Sent: 13 March 2003 17:56
> To: Agrawal, Vikas (ELS)
> Subject: Re: ld: 0711-317 ERROR: Undefined symbol:
> CryptoPP::AbstractGroup
> 
> 
> Please try putting this near the end of integer.cpp:
> 
> template class AbstractGroup<Integer>;
> 
> recompile Crypto++, and let me know if that helps.
> 
> On Thu, Mar 13, 2003 at 02:42:05PM -0000, Agrawal, Vikas (ELS) wrote:
> > Dear Sir,
> > I am trying to use your Crypto++ library version 5.0 with a small
> > application to be able to encrypt or decrypt a file. I am trying to
> compile
> > it on AIX 4.3.3.81 using 
> > gcc-3.2.1/usr/local/bin/g++ and getting following error. Please could
you
> > help us resolving these errors.
> > 
> > Thanks & Regards
> > Vikas Agrawal
> > 
> > /opt/heart/dev/gcc-3.2.1/usr/local/bin/g++ -g   -w
> > -DSP_NAMESPACE=James_Clark_SP -DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST
> > -DSTDC_HEADERS -DHAVE_DIRENT_H -DSP_MULTI_BYTE
> > -I/home/users/vagrawal/fpcrypt/elsevier/include/EsCryptoLib     -L. -L..
> > -L/home/users/vagrawal/fpcrypt/elsevier/lib -L/tool/lib
> > -L../../EsCryptoLib/src -O2 -o fpCrypt fpCrypt.o StrArgMap.o -lfpCrypt
> > -lEsCryptoLib  
> > ld: 0711-317 ERROR: Undefined symbol:
> > CryptoPP::AbstractGroup<CryptoPP::Integer>::Double(CryptoPP::Integer
> const&)
> > const
> > ld: 0711-317 ERROR: Undefined symbol:
> > CryptoPP::AbstractGroup<CryptoPP::Integer>::Subtract(CryptoPP::Integer
> > const&, CryptoPP::Integer const&) const
> > ld: 0711-317 ERROR: Undefined symbol:
> >
CryptoPP::AbstractGroup<CryptoPP::Integer>::Accumulate(CryptoPP::Integer&,
> > CryptoPP::Integer const&) const
> > ld: 0711-317 ERROR: Undefined symbol:
> > CryptoPP::AbstractGroup<CryptoPP::Integer>::Reduce(CryptoPP::Integer&,
> > CryptoPP::Integer const&) const

----- End forwarded message -----

Reply via email to