Hi Dave,

already tried myself compiling crypto with GCC 4.0 on OS-X Tiger for the mac and have run in the same errors. Apple comes with gcc 4 and gcc 3.3 but only gcc 4 being usable yet to compile code for the new intel
based macs to come.
Fixing the below bugs and make the compile go through was not that hard (I just gave dummy names to all the enums it complained about), but unfortunatly at least apples version of gcc 4.0 seems to have heavy problems with the scheme of template instantiation used, that I was not yet able to overcome (giving undefined symbols for some template based classes that should have been instantiated during compile)
I have not yet had the time to check wether this problem is just related
to apples branch of gcc 4 and may not be present with other platforms,
but i am certainly interested in anyone elses experiences because
gcc 4 seems to get standard on quite a number of platforms i have to develop on.

Best regards,

Markus Kramer



DB1 CB14 wrote:
The strict C++ standards compliance in GCC 4.0 stops
the compile of crypto 5.2.1 dead in its tracks (see
the "‘<anonymous enum>’ is/uses anonymous type" error
below).  I was hoping that since 5.2.1 compiled with
GCC 3.4 it would also compile with GCC 4.0.  This
error/situation is not seen as a GCC bug
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589)
and is covered by the C++ standard so I was wondering
if there is any work on a GCC 4.0 build or if anyone
is going to.

Is there anyone trying to build the library with GCC
4.0 besides myself and on what platform?

R.

Dave Breaker


blowfish.cpp: In member function 'void
CryptoPP::Blowfish::Base::UncheckedSetKey(CryptoPP::CipherDir,
const byte*, unsigned int)':
blowfish.cpp:33: error:
'CryptoPP::FixedRounds<16u>::<anonymous enum>' is/uses
anonymous type
blowfish.cpp:33: error:   trying to instantiate
'template<class T, class A> template<class I> const T*
CryptoPP::SecBlock::operator+(I) const'
blowfish.cpp:33: error:
'CryptoPP::FixedRounds<16u>::<anonymous enum>' is/uses
anonymous type
blowfish.cpp:33: error:   trying to instantiate
'template<class T, class A> template<class I> T*
CryptoPP::SecBlock::operator+(I)'
make: *** [blowfish.o] Error 1



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


Reply via email to