Thanks, I've put an updated makefile on the web site.
On Tue, Oct 01, 2002 at 06:35:35PM -0500, Adam Dershowitz wrote:
> I have built crypto and cryptest under MacOS 10.1 I was using gcc
> 2.95 and crypto 4.2.
> The attached make file did the job for me, although someone recently
> sent me some email and he had some trouble building, even with this
> make file.
>
> I recently upgraded to gcc 3.1 and have not yet tried to build crypto
> 4.2 or 5.0 with the new compiler.
>
> It seems that there were two different problems that I had to fix in
> the make file.
>
> 1) I need -fno-coalesce-templates (instead of the suggestion below)
> 2) I also needed to explicitly link with stdc++, by adding to the
> build line -lstdc++
>
> I was able to search around, and find that 1) is due to a bug in the
> mac compiler. And part of the bug is that this flag is not
> compatible with -O2 so I can't build an optimized version.
> I am not sure why I need 2) and it is not in the make file, but it
> does the job.
>
> > In attempting to compile the library under MacOS X, I end up with the
> >following errors:
> >
> >c++ -o cryptest.exe -g -pipe -fno-pic bench.o test.o validat1.o
> >validat2.o validat3.o -L. -lcryptopp
> >/usr/bin/ld: Undefined symbols:
> >.constructors_used
> >.destructors_used
> >make: *** [cryptest.exe] Error 1
> >
> >Can anyone on the list tell me what I'm doing wrong?
> >
> >--
> >Brian Quirt ([EMAIL PROTECTED])
> >Proud Member of the Society for the Conservation of Angular Momentum
> >Visit the society web site at <http://www.ncf.ca/~cy856/bio/scam.html>
> >Or visit my web site at <http://www.ncf.ca/~cy856/>
>
>
> --
>
> --Adam