Hi!
Sittin' here with a tricky problem that I can't solve...

* Crypto++ v. 5.1
* Linux jalla 2.4.20 #2 SMP Fri May 30 11:28:52 CEST 2003 i686 unknown
* Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with:
../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix 
--enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i3
86-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2

I have a class in its own namespace that uses the SHA512 class. To make this
class
compile I had to define the variable as CryptoPP::SHA512 sha; which is fine
by me, and this class compiles with only a warning (using -Wall,
'cryptlib.h:1358:9: warning: "/*" within comment' ). In this namespace I
have also defined my own version of the stl string, using another allocator.

Then when trying to compile the file containing "main", which includes this
class ofcourse and exists in the same namespace as the already precompiled
class, I get alot of errors... and the list starts of with...
/local/crypto51/cryptlib.h:109: no class template named `std' in `std'
/local/crypto51/cryptlib.h:109: parse error before `<' token
/local/crypto51/cryptlib.h:109: missing ';' before right brace
/local/crypto51/cryptlib.h:110: ISO C++ forbids defining types within return
   type
/local/crypto51/cryptlib.h:110: destructors must be member functions
/local/crypto51/cryptlib.h:110: return type specification for destructor
   invalid
/local/crypto51/cryptlib.h:110: virtual outside class declaration
/local/crypto51/cryptlib.h:111: non-member function `const char*
   CryptoPP::what()' cannot have `const' method qualifier

... and just keeps going...

If I remove the std:: from the string on line 109 in the cryptlib.h file,
the first error disapears... but this is not the way I want to solve it...
any suggestions?

/Ola

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to